home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Corel 10 Texture (image/corel10Texture)
| ext
| Unsupported |
1%
| dexvert
| Croteam texture file (image/croteamTextureFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with very long lines (515), with CRLF line terminators
| default
| |
100%
| TrID
| LaTeX 2e document (with rem)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CRLF]
| default (weak)
| |
100%
| xdgMime
| text/x-matlab
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 2d 2a 2d 4c 61 54 | 65 58 2d 2a 2d 0d 0a 25 |% -*-LaT|eX-*-..%|
|00000010| 20 43 6f 6e 76 65 72 74 | 65 64 20 61 75 74 6f 6d | Convert|ed autom|
|00000020| 61 74 69 63 61 6c 6c 79 | 20 66 72 6f 6d 20 74 72 |atically| from tr|
|00000030| 6f 66 66 20 74 6f 20 4c | 61 54 65 58 0d 0a 25 20 |off to L|aTeX..% |
|00000040| 62 79 20 74 72 32 6c 61 | 74 65 78 20 28 24 52 65 |by tr2la|tex ($Re|
|00000050| 76 69 73 69 6f 6e 3a 20 | 32 2e 32 20 24 24 44 61 |vision: |2.2 $$Da|
|00000060| 74 65 3a 20 31 39 39 32 | 2f 30 34 2f 32 37 20 31 |te: 1992|/04/27 1|
|00000070| 35 3a 31 33 3a 32 36 20 | 24 20 62 79 20 43 2e 20 |5:13:26 |$ by C. |
|00000080| 45 6e 67 65 6c 29 0d 0a | 25 20 6f 6e 20 54 75 65 |Engel)..|% on Tue|
|00000090| 20 46 65 62 20 30 38 20 | 31 32 3a 34 33 3a 35 39 | Feb 08 |12:43:59|
|000000a0| 20 31 39 39 34 0d 0a 25 | 20 74 72 32 6c 61 74 65 | 1994..%| tr2late|
|000000b0| 78 20 77 61 73 20 77 72 | 69 74 74 65 6e 20 62 79 |x was wr|itten by|
|000000c0| 20 4b 61 6d 61 6c 20 41 | 6c 2d 59 61 68 79 61 20 | Kamal A|l-Yahya |
|000000d0| 61 74 20 53 74 61 6e 66 | 6f 72 64 20 55 6e 69 76 |at Stanf|ord Univ|
|000000e0| 65 72 73 69 74 79 0d 0a | 25 20 28 4b 61 6d 61 6c |ersity..|% (Kamal|
|000000f0| 25 48 61 6e 61 75 6d 61 | 40 53 55 2d 53 43 4f 52 |%Hanauma|@SU-SCOR|
|00000100| 45 2e 41 52 50 41 29 0d | 0a 25 20 61 6e 64 20 73 |E.ARPA).|.% and s|
|00000110| 75 62 73 74 61 6e 74 69 | 61 6c 6c 79 20 65 6e 68 |ubstanti|ally enh|
|00000120| 61 6e 63 65 64 20 62 79 | 20 43 68 72 69 73 74 69 |anced by| Christi|
|00000130| 61 6e 20 45 6e 67 65 6c | 20 61 74 20 52 57 54 48 |an Engel| at RWTH|
|00000140| 20 41 61 63 68 65 6e 0d | 0a 25 20 28 6b 72 69 73 | Aachen.|.% (kris|
|00000150| 63 68 61 6e 40 69 6e 66 | 6f 72 6d 61 74 69 6b 2e |chan@inf|ormatik.|
|00000160| 72 77 74 68 2d 61 61 63 | 68 65 6e 2e 64 65 29 2e |rwth-aac|hen.de).|
|00000170| 0d 0a 25 0d 0a 25 20 74 | 72 6f 66 66 20 69 6e 70 |..%..% t|roff inp|
|00000180| 75 74 20 66 69 6c 65 3a | 20 77 69 64 67 65 74 2e |ut file:| widget.|
|00000190| 6d 73 0d 0a 0d 0a 5c 64 | 6f 63 75 6d 65 6e 74 73 |ms....\d|ocuments|
|000001a0| 74 79 6c 65 5b 74 72 6f | 66 66 6d 73 5d 7b 61 72 |tyle[tro|ffms]{ar|
|000001b0| 74 69 63 6c 65 7d 0d 0a | 5c 62 65 67 69 6e 7b 64 |ticle}..|\begin{d|
|000001c0| 6f 63 75 6d 65 6e 74 7d | 0d 0a 25 2d 2d 2d 2d 2d |ocument}|..%-----|
|000001d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000001e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000001f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 0a 25 |--------|-----..%|
|00000200| 20 73 74 61 72 74 20 6f | 66 20 69 6e 70 75 74 20 | start o|f input |
|00000210| 66 69 6c 65 3a 20 77 69 | 64 67 65 74 2e 6d 73 0d |file: wi|dget.ms.|
|00000220| 0a 25 0d 0a 25 2e 4e 44 | 0d 0a 5c 70 61 72 5c 6e |.%..%.ND|..\par\n|
|00000230| 6f 69 6e 64 65 6e 74 0d | 0a 25 2e 6e 72 20 50 53 |oindent.|.%.nr PS|
|00000240| 20 31 32 0d 0a 25 2e 6e | 72 20 56 53 20 31 33 0d | 12..%.n|r VS 13.|
|00000250| 0a 5c 70 61 72 5c 6e 6f | 69 6e 64 65 6e 74 0d 0a |.\par\no|indent..|
|00000260| 25 2e 6e 68 0d 0a 25 2e | 52 50 0d 0a 5c 74 69 74 |%.nh..%.|RP..\tit|
|00000270| 6c 65 7b 41 20 57 69 6e | 64 6f 77 20 62 61 73 65 |le{A Win|dow base|
|00000280| 64 20 49 6e 74 65 72 61 | 63 74 69 76 65 20 50 72 |d Intera|ctive Pr|
|00000290| 6f 67 72 61 6d 6d 69 6e | 67 20 55 74 69 6c 69 74 |ogrammin|g Utilit|
|000002a0| 79 20 4f 6e 20 55 6e 69 | 78 3a 20 5c 5c 0d 0a 41 |y On Uni|x: \\..A|
|000002b0| 20 4c 69 62 72 61 72 79 | 20 50 61 63 6b 61 67 65 | Library| Package|
|000002c0| 20 66 6f 72 20 43 20 70 | 72 6f 67 72 61 6d 6d 65 | for C p|rogramme|
|000002d0| 72 73 7d 0d 0a 5c 61 75 | 74 68 6f 72 7b 52 69 63 |rs}..\au|thor{Ric|
|000002e0| 68 61 72 64 20 41 2e 20 | 43 75 6c 73 68 61 77 7d |hard A. |Culshaw}|
|000002f0| 0d 0a 5c 61 75 74 68 6f | 72 61 66 66 7b 47 45 43 |..\autho|raff{GEC|
|00000300| 20 48 69 72 73 74 20 52 | 65 73 65 61 72 63 68 20 | Hirst R|esearch |
|00000310| 43 65 6e 74 72 65 20 5c | 5c 0d 0a 44 61 74 61 20 |Centre \|\..Data |
|00000320| 53 79 73 74 65 6d 73 20 | 44 69 76 69 73 69 6f 6e |Systems |Division|
|00000330| 20 5c 5c 0d 0a 45 61 73 | 74 20 4c 61 6e 65 20 5c | \\..Eas|t Lane \|
|00000340| 5c 0d 0a 57 65 6d 62 6c | 65 79 20 5c 5c 0d 0a 4d |\..Wembl|ey \\..M|
|00000350| 69 64 64 6c 65 73 65 78 | 20 48 41 39 20 37 50 50 |iddlesex| HA9 7PP|
|00000360| 7d 0d 0a 25 2e 4e 44 0d | 0a 7b 5c 6e 6f 62 72 65 |}..%.ND.|.{\nobre|
|00000370| 61 6b 0d 0a 5c 73 68 65 | 61 64 7b 49 4e 54 52 4f |ak..\she|ad{INTRO|
|00000380| 44 55 43 54 49 4f 4e 7d | 0d 0a 0d 0a 5c 70 61 72 |DUCTION}|....\par|
|00000390| 0d 0a 41 20 57 69 64 67 | 65 74 20 69 73 20 61 20 |..A Widg|et is a |
|000003a0| 75 73 65 72 20 64 65 66 | 69 6e 61 62 6c 65 20 0d |user def|inable .|
|000003b0| 0a 7b 5c 62 66 20 77 69 | 6e 64 6f 77 5c 20 67 61 |.{\bf wi|ndow\ ga|
|000003c0| 64 67 65 74 2e 7d 0d 0a | 20 54 68 65 79 20 61 6c |dget.}..| They al|
|000003d0| 6c 6f 77 20 74 68 65 20 | 75 73 65 72 20 74 6f 20 |low the |user to |
|000003e0| 69 6e 74 65 72 61 63 74 | 20 77 69 74 68 20 74 68 |interact| with th|
|000003f0| 65 20 70 72 6f 67 72 61 | 6d 20 69 6e 20 73 70 65 |e progra|m in spe|
|00000400| 63 69 66 79 69 6e 67 20 | 6f 70 65 72 61 74 69 6f |cifying |operatio|
|00000410| 6e 73 20 74 6f 20 62 65 | 20 63 61 72 72 69 65 64 |ns to be| carried|
|00000420| 20 6f 75 74 2e 20 57 69 | 64 67 65 74 6c 69 62 20 | out. Wi|dgetlib |
|00000430| 69 73 20 61 20 73 65 74 | 20 6f 66 20 6c 69 62 72 |is a set| of libr|
|00000440| 61 72 79 20 66 75 6e 63 | 74 69 6f 6e 73 20 77 68 |ary func|tions wh|
|00000450| 69 63 68 20 61 6c 6c 6f | 77 73 20 74 68 65 20 75 |ich allo|ws the u|
|00000460| 73 65 72 20 74 6f 20 63 | 72 65 61 74 65 20 61 6e |ser to c|reate an|
|00000470| 64 20 69 6e 74 65 72 61 | 63 74 20 77 69 74 68 20 |d intera|ct with |
|00000480| 0d 0a 7b 5c 62 66 20 77 | 69 64 67 65 74 73 2e 7d |..{\bf w|idgets.}|
|00000490| 0d 0a 41 20 77 69 64 67 | 65 74 20 63 61 6e 20 62 |..A widg|et can b|
|000004a0| 65 20 6f 6e 65 20 6f 66 | 20 66 6f 75 72 20 74 79 |e one of| four ty|
|000004b0| 70 65 73 20 3a 0d 0a 5c | 70 61 72 5c 6e 6f 69 6e |pes :..\|par\noin|
|000004c0| 64 65 6e 74 0d 0a 20 20 | 20 20 20 20 31 29 20 0d |dent.. | 1) .|
|000004d0| 0a 7b 5c 62 66 20 43 6f | 6d 6d 61 6e 64 7d 0d 0a |.{\bf Co|mmand}..|
|000004e0| 57 69 64 67 65 74 20 0d | 0a 20 20 20 20 20 20 32 |Widget .|. 2|
|000004f0| 29 20 0d 0a 7b 5c 62 66 | 20 4c 61 62 65 6c 7d 0d |) ..{\bf| Label}.|
|00000500| 0a 57 69 64 67 65 74 0d | 0a 20 20 20 20 20 20 33 |.Widget.|. 3|
|00000510| 29 20 0d 0a 7b 5c 62 66 | 20 54 6f 67 67 6c 65 7d |) ..{\bf| Toggle}|
|00000520| 0d 0a 57 69 64 67 65 74 | 0d 0a 20 20 20 20 20 20 |..Widget|.. |
|00000530| 34 29 20 0d 0a 7b 5c 62 | 66 20 49 6e 70 75 74 7d |4) ..{\b|f Input}|
|00000540| 0d 0a 57 69 64 67 65 74 | 0d 0a 0d 0a 5c 73 68 65 |..Widget|....\she|
|00000550| 61 64 7b 43 6f 6d 6d 61 | 6e 64 20 57 69 64 67 65 |ad{Comma|nd Widge|
|00000560| 74 73 7d 0d 0a 5c 70 61 | 72 0d 0a 41 20 63 6f 6d |ts}..\pa|r..A com|
|00000570| 6d 61 6e 64 20 77 69 64 | 67 65 74 20 61 6c 6c 6f |mand wid|get allo|
|00000580| 77 73 20 74 68 65 20 75 | 73 65 72 20 74 6f 20 73 |ws the u|ser to s|
|00000590| 65 6c 65 63 74 20 61 20 | 66 75 6e 63 74 69 6f 6e |elect a |function|
|000005a0| 20 74 6f 20 62 65 20 63 | 61 72 72 69 65 64 20 6f | to be c|arried o|
|000005b0| 75 74 2c 20 65 2e 67 20 | 69 6e 20 61 20 70 61 67 |ut, e.g |in a pag|
|000005c0| 69 6e 67 20 70 72 6f 67 | 72 61 6d 20 6f 6e 65 20 |ing prog|ram one |
|000005d0| 73 75 63 68 20 63 6f 6d | 6d 61 6e 64 20 63 6f 75 |such com|mand cou|
|000005e0| 6c 64 20 62 65 20 27 4e | 65 78 74 20 50 61 67 65 |ld be 'N|ext Page|
|000005f0| 27 2e 20 49 6e 20 63 72 | 65 61 74 69 6e 67 20 61 |'. In cr|eating a|
|00000600| 20 63 6f 6d 6d 61 6e 64 | 20 77 69 64 67 65 74 20 | command| widget |
|00000610| 74 68 65 20 70 72 6f 67 | 72 61 6d 6d 65 72 20 6d |the prog|rammer m|
|00000620| 75 73 74 20 70 61 73 73 | 20 69 74 20 74 68 65 20 |ust pass| it the |
|00000630| 66 75 6e 63 74 69 6f 6e | 20 74 6f 20 62 65 20 63 |function| to be c|
|00000640| 61 72 72 69 65 64 20 6f | 75 74 20 77 68 65 6e 20 |arried o|ut when |
|00000650| 74 68 65 20 77 69 64 67 | 65 74 20 69 73 20 73 65 |the widg|et is se|
|00000660| 6c 65 63 74 65 64 20 28 | 61 63 74 69 76 61 74 65 |lected (|activate|
|00000670| 64 29 2e 20 54 68 65 20 | 77 69 64 67 65 74 20 69 |d). The |widget i|
|00000680| 73 20 61 63 74 69 76 61 | 74 65 64 20 75 73 69 6e |s activa|ted usin|
|00000690| 67 20 61 20 75 6e 69 71 | 75 65 20 27 61 63 74 69 |g a uniq|ue 'acti|
|000006a0| 76 61 74 69 6f 6e 27 20 | 63 68 61 72 61 63 74 65 |vation' |characte|
|000006b0| 72 20 77 68 69 63 68 20 | 69 73 20 64 69 73 70 6c |r which |is displ|
|000006c0| 61 79 65 64 20 69 6e 20 | 74 68 65 20 77 69 64 67 |ayed in |the widg|
|000006d0| 65 74 20 66 6f 72 20 65 | 61 73 79 20 72 65 66 65 |et for e|asy refe|
|000006e0| 72 65 6e 63 65 2e 0d 0a | 0d 0a 5c 73 68 65 61 64 |rence...|..\shead|
|000006f0| 7b 4c 61 62 65 6c 20 57 | 69 64 67 65 74 73 7d 0d |{Label W|idgets}.|
|00000700| 0a 5c 70 61 72 0d 0a 41 | 20 6c 61 62 65 6c 20 77 |.\par..A| label w|
|00000710| 69 64 67 65 74 20 69 73 | 20 73 69 6d 70 6c 79 20 |idget is| simply |
|00000720| 61 20 77 69 64 67 65 74 | 20 77 68 69 63 68 20 68 |a widget| which h|
|00000730| 6f 6c 64 73 20 61 20 63 | 68 61 72 61 63 74 65 72 |olds a c|haracter|
|00000740| 20 73 74 72 69 6e 67 20 | 73 75 63 68 20 61 73 20 | string |such as |
|00000750| 61 20 68 65 61 64 69 6e | 67 2c 20 77 68 69 63 68 |a headin|g, which|
|00000760| 20 63 61 6e 20 62 65 20 | 63 68 61 6e 67 65 64 20 | can be |changed |
|00000770| 61 74 20 77 69 6c 6c 20 | 6c 61 74 65 72 2e 20 54 |at will |later. T|
|00000780| 68 65 20 70 72 6f 67 72 | 61 6d 6d 65 72 20 63 61 |he progr|ammer ca|
|00000790| 6e 20 73 75 70 70 6c 79 | 20 70 61 72 61 6d 65 74 |n supply| paramet|
|000007a0| 65 72 73 20 77 68 69 63 | 68 20 63 61 6e 20 65 69 |ers whic|h can ei|
|000007b0| 74 68 65 72 20 6c 65 66 | 74 20 6a 75 73 74 69 66 |ther lef|t justif|
|000007c0| 79 20 28 64 65 66 61 75 | 6c 74 29 2c 20 72 69 67 |y (defau|lt), rig|
|000007d0| 68 74 20 6a 75 73 74 69 | 66 79 2c 20 6f 72 20 63 |ht justi|fy, or c|
|000007e0| 65 6e 74 72 65 20 74 68 | 65 20 6d 65 73 73 61 67 |entre th|e messag|
|000007f0| 65 20 77 69 74 68 69 6e | 20 74 68 65 20 77 69 64 |e within| the wid|
|00000800| 67 65 74 20 28 77 68 69 | 63 68 20 68 61 73 20 61 |get (whi|ch has a|
|00000810| 20 75 73 65 72 20 64 65 | 66 69 6e 61 62 6c 65 20 | user de|finable |
|00000820| 77 69 64 74 68 29 20 61 | 73 20 77 65 6c 6c 20 61 |width) a|s well a|
|00000830| 73 20 68 69 67 68 6c 69 | 67 68 74 20 28 64 65 66 |s highli|ght (def|
|00000840| 61 75 6c 74 29 20 6f 72 | 20 64 65 68 69 67 68 6c |ault) or| dehighl|
|00000850| 69 67 68 74 20 69 74 2e | 0d 0a 0d 0a 5c 73 68 65 |ight it.|....\she|
|00000860| 61 64 7b 54 6f 67 67 6c | 65 20 57 69 64 67 65 74 |ad{Toggl|e Widget|
|00000870| 73 7d 0d 0a 5c 70 61 72 | 0d 0a 41 20 74 6f 67 67 |s}..\par|..A togg|
|00000880| 6c 65 20 77 69 64 67 65 | 74 20 63 6f 6e 74 61 69 |le widge|t contai|
|00000890| 6e 73 20 61 20 6d 65 73 | 73 61 67 65 20 77 68 69 |ns a mes|sage whi|
|000008a0| 63 68 20 69 6e 64 69 63 | 61 74 65 73 20 74 68 65 |ch indic|ates the|
|000008b0| 20 63 75 72 72 65 6e 74 | 20 76 61 6c 75 65 20 6f | current| value o|
|000008c0| 66 20 61 6e 20 65 6e 74 | 69 74 79 20 77 68 69 63 |f an ent|ity whic|
|000008d0| 68 20 63 61 6e 20 62 65 | 20 6d 6f 72 65 20 74 68 |h can be| more th|
|000008e0| 61 6e 20 6f 6e 65 20 76 | 61 6c 75 65 20 65 2e 67 |an one v|alue e.g|
|000008f0| 2c 20 59 65 73 2f 4e 6f | 2f 44 6f 6e 27 74 2d 4b |, Yes/No|/Don't-K|
|00000900| 6e 6f 77 2e 20 54 68 65 | 20 76 61 6c 75 65 20 69 |now. The| value i|
|00000910| 73 20 74 6f 67 67 6c 65 | 64 20 77 68 65 6e 20 61 |s toggle|d when a|
|00000920| 20 67 69 76 65 6e 20 63 | 68 61 72 61 63 74 65 72 | given c|haracter|
|00000930| 20 69 73 20 70 72 65 73 | 73 65 64 2e 20 54 68 65 | is pres|sed. The|
|00000940| 20 61 63 74 69 76 61 74 | 69 6f 6e 20 63 68 61 72 | activat|ion char|
|00000950| 61 63 74 65 72 20 69 73 | 20 61 6c 73 6f 20 64 69 |acter is| also di|
|00000960| 73 70 6c 61 79 65 64 20 | 69 6e 20 74 68 65 20 77 |splayed |in the w|
|00000970| 69 64 67 65 74 2e 20 41 | 74 20 61 6e 79 20 70 6f |idget. A|t any po|
|00000980| 69 6e 74 20 74 68 65 20 | 70 72 6f 67 72 61 6d 6d |int the |programm|
|00000990| 65 72 20 63 61 6e 20 65 | 6e 71 75 69 72 65 20 61 |er can e|nquire a|
|000009a0| 73 20 74 6f 20 74 68 65 | 20 74 68 65 20 63 75 72 |s to the| the cur|
|000009b0| 72 65 6e 74 20 74 6f 67 | 67 6c 65 20 76 61 6c 75 |rent tog|gle valu|
|000009c0| 65 2e 0d 0a 0d 0a 5c 73 | 68 65 61 64 7b 49 6e 70 |e.....\s|head{Inp|
|000009d0| 75 74 20 57 69 64 67 65 | 74 73 7d 0d 0a 5c 70 61 |ut Widge|ts}..\pa|
|000009e0| 72 0d 0a 41 6e 20 69 6e | 70 75 74 20 77 69 64 67 |r..An in|put widg|
|000009f0| 65 74 20 61 6c 6c 6f 77 | 73 20 74 68 65 20 75 73 |et allow|s the us|
|00000a00| 65 72 20 74 6f 20 65 6e | 74 65 72 20 69 6e 66 6f |er to en|ter info|
|00000a10| 72 6d 61 74 69 6f 6e 20 | 69 6e 74 6f 20 74 68 65 |rmation |into the|
|00000a20| 20 70 72 6f 67 72 61 6d | 20 69 6e 20 74 68 65 20 | program| in the |
|00000a30| 66 6f 72 6d 20 6f 66 20 | 61 20 73 74 72 69 6e 67 |form of |a string|
|00000a40| 2c 20 65 2e 67 20 69 6e | 20 61 20 70 61 67 69 6e |, e.g in| a pagin|
|00000a50| 67 20 70 72 6f 67 72 61 | 6d 20 6f 6e 65 20 6d 69 |g progra|m one mi|
|00000a60| 67 68 74 20 77 61 6e 74 | 20 74 6f 20 73 75 70 70 |ght want| to supp|
|00000a70| 6c 79 20 61 20 66 69 6c | 65 20 6e 61 6d 65 2e 20 |ly a fil|e name. |
|00000a80| 54 68 65 72 65 20 61 72 | 65 20 74 77 6f 20 74 79 |There ar|e two ty|
|00000a90| 70 65 73 20 6f 66 20 69 | 6e 70 75 74 20 77 69 64 |pes of i|nput wid|
|00000aa0| 67 65 74 73 20 3a 0d 0a | 0d 0a 61 29 20 54 68 65 |gets :..|..a) The|
|00000ab0| 20 77 69 64 67 65 74 20 | 69 73 20 61 63 74 69 76 | widget |is activ|
|00000ac0| 61 74 65 64 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |ated imm|ediately|
|00000ad0| 20 6f 6e 20 63 72 65 61 | 74 69 6f 6e 20 74 68 65 | on crea|tion the|
|00000ae0| 72 65 66 6f 72 65 20 61 | 6e 20 61 63 74 69 76 61 |refore a|n activa|
|00000af0| 74 69 6f 6e 20 63 68 61 | 72 61 63 74 65 72 20 69 |tion cha|racter i|
|00000b00| 73 20 6e 6f 74 20 72 65 | 71 75 69 72 65 64 2e 20 |s not re|quired. |
|00000b10| 45 2e 67 20 69 6e 20 61 | 20 70 61 67 69 6e 67 20 |E.g in a| paging |
|00000b20| 70 72 6f 67 72 61 6d 20 | 6f 6e 65 20 6d 69 67 68 |program |one migh|
|00000b30| 74 20 68 61 76 65 20 61 | 20 63 6f 6d 6d 61 6e 64 |t have a| command|
|00000b40| 20 77 69 64 67 65 74 20 | 77 68 69 63 68 20 61 63 | widget |which ac|
|00000b50| 74 69 76 61 74 65 73 20 | 74 68 69 73 20 74 79 70 |tivates |this typ|
|00000b60| 65 20 6f 66 20 69 6e 70 | 75 74 20 77 69 64 67 65 |e of inp|ut widge|
|00000b70| 74 20 69 6e 20 6f 72 64 | 65 72 20 74 6f 20 67 65 |t in ord|er to ge|
|00000b80| 74 20 61 20 66 69 6c 65 | 20 6e 61 6d 65 2e 0d 0a |t a file| name...|
|00000b90| 5c 70 61 72 5c 6e 6f 69 | 6e 64 65 6e 74 0d 0a 62 |\par\noi|ndent..b|
|00000ba0| 29 20 54 68 65 20 77 69 | 64 67 65 74 20 68 61 73 |) The wi|dget has|
|00000bb0| 20 61 6e 20 61 73 73 6f | 63 69 61 74 65 64 20 61 | an asso|ciated a|
|00000bc0| 63 74 69 76 61 74 69 6f | 6e 20 63 68 61 72 61 63 |ctivatio|n charac|
|00000bd0| 74 65 72 20 73 6f 20 74 | 68 65 72 65 66 6f 72 65 |ter so t|herefore|
|00000be0| 20 69 74 20 6d 61 79 20 | 62 65 20 61 63 74 69 76 | it may |be activ|
|00000bf0| 61 74 65 64 20 61 74 20 | 61 6e 79 20 70 6f 69 6e |ated at |any poin|
|00000c00| 74 20 61 66 74 65 72 20 | 63 72 65 61 74 69 6f 6e |t after |creation|
|00000c10| 2e 20 54 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |. The ch|aracter |
|00000c20| 69 73 20 64 69 73 70 6c | 61 79 65 64 20 69 6e 20 |is displ|ayed in |
|00000c30| 74 68 65 20 77 69 64 67 | 65 74 2e 0d 0a 0d 0a 46 |the widg|et.....F|
|00000c40| 6f 72 20 65 61 73 65 20 | 6f 66 20 75 73 65 20 74 |or ease |of use t|
|00000c50| 68 65 20 69 6e 70 75 74 | 20 77 69 64 67 65 74 73 |he input| widgets|
|00000c60| 20 63 6f 6e 74 61 69 6e | 20 63 68 61 72 61 63 74 | contain| charact|
|00000c70| 65 72 20 73 74 72 69 6e | 67 73 20 77 68 69 63 68 |er strin|gs which|
|00000c80| 20 63 61 6e 20 65 78 70 | 6c 61 69 6e 0d 0a 74 68 | can exp|lain..th|
|00000c90| 65 72 65 20 75 73 65 20 | 77 69 74 68 69 6e 20 74 |ere use |within t|
|00000ca0| 68 65 20 70 72 6f 67 72 | 61 6d 2e 0d 0a 7d 0d 0a |he progr|am...}..|
|00000cb0| 5c 6e 65 77 70 61 67 65 | 0d 0a 5c 73 68 65 61 64 |\newpage|..\shead|
|00000cc0| 7b 54 65 78 74 20 57 69 | 6e 64 6f 77 7d 0d 0a 5c |{Text Wi|ndow}..\|
|00000cd0| 70 61 72 0d 0a 54 68 65 | 20 6c 69 62 72 61 72 79 |par..The| library|
|00000ce0| 20 61 6c 73 6f 20 61 6c | 6c 6f 77 73 20 74 68 65 | also al|lows the|
|00000cf0| 20 75 73 65 72 20 74 6f | 20 64 65 66 69 6e 65 20 | user to| define |
|00000d00| 61 20 74 65 78 74 20 77 | 69 6e 64 6f 77 20 69 6e |a text w|indow in|
|00000d10| 74 6f 20 77 68 69 63 68 | 20 74 68 65 20 70 72 6f |to which| the pro|
|00000d20| 67 72 61 6d 20 6d 61 79 | 20 72 65 70 6f 72 74 20 |gram may| report |
|00000d30| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 20 4f 6e 20 |informat|ion. On |
|00000d40| 63 72 65 61 74 69 6f 6e | 20 74 68 65 20 70 72 6f |creation| the pro|
|00000d50| 67 72 61 6d 20 68 61 73 | 20 74 6f 20 70 61 73 73 |gram has| to pass|
|00000d60| 20 61 20 70 61 72 61 6d | 65 74 65 72 20 77 68 69 | a param|eter whi|
|00000d70| 63 68 20 73 70 65 63 69 | 66 69 65 73 20 68 6f 77 |ch speci|fies how|
|00000d80| 20 6d 75 63 68 20 72 6f | 6f 6d 20 74 6f 20 6c 65 | much ro|om to le|
|00000d90| 61 76 65 20 62 65 66 6f | 72 65 20 74 68 65 20 74 |ave befo|re the t|
|00000da0| 6f 70 20 6f 66 20 74 68 | 65 20 74 65 78 74 20 77 |op of th|e text w|
|00000db0| 69 6e 64 6f 77 2e 20 45 | 2e 67 20 30 20 6d 65 61 |indow. E|.g 0 mea|
|00000dc0| 6e 73 20 70 6c 61 63 65 | 20 74 68 65 20 77 69 6e |ns place| the win|
|00000dd0| 64 6f 77 20 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 |dow imme|diately |
|00000de0| 62 65 6c 6f 77 20 74 68 | 65 20 6c 6f 77 65 73 74 |below th|e lowest|
|00000df0| 20 77 69 64 67 65 74 2c | 20 31 20 6d 65 61 6e 73 | widget,| 1 means|
|00000e00| 20 61 6c 6c 6f 77 20 72 | 6f 6f 6d 20 66 6f 72 20 | allow r|oom for |
|00000e10| 6f 6e 65 20 6d 6f 72 65 | 20 72 6f 77 20 6f 66 20 |one more| row of |
|00000e20| 77 69 64 67 65 74 73 20 | 62 65 66 6f 72 65 20 70 |widgets |before p|
|00000e30| 6c 61 63 69 6e 67 20 74 | 68 65 20 77 69 6e 64 6f |lacing t|he windo|
|00000e40| 77 2e 20 54 68 65 20 74 | 65 78 74 20 77 69 6e 64 |w. The t|ext wind|
|00000e50| 6f 77 20 61 6c 77 61 79 | 73 20 73 74 72 65 74 63 |ow alway|s stretc|
|00000e60| 68 65 73 20 74 6f 20 74 | 68 65 20 62 6f 74 74 6f |hes to t|he botto|
|00000e70| 6d 20 6f 66 20 74 68 65 | 20 73 63 72 65 65 6e 2e |m of the| screen.|
|00000e80| 20 54 68 65 20 77 69 6e | 64 6f 77 20 63 61 6e 20 | The win|dow can |
|00000e90| 62 65 20 62 6f 72 64 65 | 72 65 64 20 6f 6e 20 61 |be borde|red on a|
|00000ea0| 6e 79 20 32 20 6f 70 70 | 6f 73 69 74 65 20 73 69 |ny 2 opp|osite si|
|00000eb0| 64 65 73 20 6f 72 20 6f | 6e 20 61 6c 6c 20 34 20 |des or o|n all 4 |
|00000ec0| 28 65 66 66 65 63 74 69 | 76 65 6c 79 20 62 6f 78 |(effecti|vely box|
|00000ed0| 69 6e 67 20 0d 0a 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |ing ....|........|
|00000ee0| 69 74 29 2e 0d 0a 0d 0a | 5c 73 68 65 61 64 7b 57 |it).....|\shead{W|
|00000ef0| 69 64 67 65 74 20 50 6c | 61 63 65 6d 65 6e 74 7d |idget Pl|acement}|
|00000f00| 0d 0a 5c 70 61 72 0d 0a | 54 68 65 20 6c 69 62 72 |..\par..|The libr|
|00000f10| 61 72 79 20 6d 61 69 6e | 74 61 69 6e 73 20 74 68 |ary main|tains th|
|00000f20| 65 20 63 75 72 72 65 6e | 74 20 58 2c 59 20 63 6f |e curren|t X,Y co|
|00000f30| 6f 72 64 69 6e 61 74 65 | 20 6f 66 20 74 68 65 20 |ordinate| of the |
|00000f40| 6c 61 73 74 20 77 69 64 | 67 65 74 20 63 72 65 61 |last wid|get crea|
|00000f50| 74 65 64 2e 20 57 68 65 | 6e 20 61 20 6e 65 77 20 |ted. Whe|n a new |
|00000f60| 77 69 64 67 65 74 20 69 | 73 20 63 72 65 61 74 65 |widget i|s create|
|00000f70| 64 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 6d 75 |d the pr|ogram mu|
|00000f80| 73 74 20 70 61 73 73 20 | 61 20 70 61 72 61 6d 65 |st pass |a parame|
|00000f90| 74 65 72 20 30 20 6f 72 | 20 31 2e 20 41 20 30 20 |ter 0 or| 1. A 0 |
|00000fa0| 6d 65 61 6e 73 20 70 75 | 74 20 74 68 65 20 6e 65 |means pu|t the ne|
|00000fb0| 77 20 77 69 64 67 65 74 | 20 6f 6e 20 74 68 65 20 |w widget| on the |
|00000fc0| 63 75 72 72 65 6e 74 20 | 72 6f 77 20 69 66 20 70 |current |row if p|
|00000fd0| 6f 73 73 69 62 6c 65 2c | 20 65 6c 73 65 20 67 6f |ossible,| else go|
|00000fe0| 20 6f 6e 74 6f 20 74 68 | 65 20 6e 65 78 74 20 72 | onto th|e next r|
|00000ff0| 6f 77 2e 20 41 20 31 20 | 66 6f 72 63 65 73 20 74 |ow. A 1 |forces t|
|00001000| 68 65 20 6e 65 77 20 77 | 69 64 67 65 74 20 6f 6e |he new w|idget on|
|00001010| 74 6f 20 74 68 65 20 6e | 65 78 74 20 72 6f 77 2e |to the n|ext row.|
|00001020| 20 54 68 69 73 20 6d 65 | 61 6e 73 20 74 68 61 74 | This me|ans that|
|00001030| 20 77 69 64 67 65 74 73 | 20 63 61 6e 20 6f 6e 6c | widgets| can onl|
|00001040| 79 20 67 6f 20 61 66 74 | 65 72 20 70 72 65 63 65 |y go aft|er prece|
|00001050| 64 69 6e 67 20 6f 6e 65 | 73 20 61 6e 64 20 6e 6f |ding one|s and no|
|00001060| 74 20 62 65 66 6f 72 65 | 2e 20 42 75 74 20 68 6f |t before|. But ho|
|00001070| 77 65 76 65 72 20 77 69 | 64 67 65 74 73 20 63 61 |wever wi|dgets ca|
|00001080| 6e 20 62 65 20 70 6c 61 | 63 65 64 20 6f 76 65 72 |n be pla|ced over|
|00001090| 20 77 69 64 67 65 74 73 | 20 77 68 69 63 68 20 68 | widgets| which h|
|000010a0| 61 76 65 20 70 72 65 76 | 69 6f 75 73 6c 79 20 62 |ave prev|iously b|
|000010b0| 65 65 6e 20 64 65 73 74 | 72 6f 79 65 64 2e 0d 0a |een dest|royed...|
|000010c0| 0d 0a 5c 73 68 65 61 64 | 7b 43 6f 6d 70 69 6c 69 |..\shead|{Compili|
|000010d0| 6e 67 20 54 68 69 6e 67 | 73 7d 0d 0a 5c 70 61 72 |ng Thing|s}..\par|
|000010e0| 0d 0a 49 6e 20 6f 72 64 | 65 72 20 74 6f 20 75 73 |..In ord|er to us|
|000010f0| 65 20 74 68 65 20 6c 69 | 62 72 61 72 79 2c 20 69 |e the li|brary, i|
|00001100| 74 20 69 73 20 6e 65 63 | 65 73 73 61 72 79 20 74 |t is nec|essary t|
|00001110| 6f 20 68 61 76 65 20 63 | 65 72 74 61 69 6e 20 74 |o have c|ertain t|
|00001120| 79 70 65 73 20 61 6e 64 | 20 76 61 72 69 61 62 6c |ypes and| variabl|
|00001130| 65 73 20 64 65 66 69 6e | 65 64 2e 20 54 68 65 72 |es defin|ed. Ther|
|00001140| 65 66 6f 72 65 2c 20 74 | 68 65 20 70 72 6f 67 72 |efore, t|he progr|
|00001150| 61 6d 20 6d 75 73 74 20 | 68 61 76 65 20 74 68 65 |am must |have the|
|00001160| 20 6c 69 6e 65 3a 0d 0a | 5c 70 61 72 0d 0a 7b 5c | line:..|\par..{\|
|00001170| 62 66 20 5c 23 69 6e 63 | 6c 75 64 65 5c 20 24 3c |bf \#inc|lude\ $<|
|00001180| 24 77 69 64 67 65 74 73 | 2e 68 24 3e 24 7d 0d 0a |$widgets|.h$>$}..|
|00001190| 5c 70 61 72 5c 6e 6f 69 | 6e 64 65 6e 74 0d 0a 61 |\par\noi|ndent..a|
|000011a0| 74 20 74 68 65 20 74 6f | 70 20 6f 66 20 74 68 65 |t the to|p of the|
|000011b0| 20 73 6f 75 72 63 65 2e | 20 54 68 65 20 68 65 61 | source.| The hea|
|000011c0| 64 65 72 20 66 69 6c 65 | 20 69 6e 63 6c 75 64 65 |der file| include|
|000011d0| 73 20 24 3c 24 63 75 72 | 73 65 73 2e 68 24 3e 24 |s $<$cur|ses.h$>$|
|000011e0| 2c 20 24 3c 24 73 67 65 | 74 74 79 2e 68 24 3e 24 |, $<$sge|tty.h$>$|
|000011f0| 2c 20 24 3c 24 73 74 64 | 69 6f 2e 68 24 3e 24 20 |, $<$std|io.h$>$ |
|00001200| 73 6f 20 79 6f 75 20 64 | 6f 6e 27 74 20 68 61 76 |so you d|on't hav|
|00001210| 65 20 74 6f 20 69 6e 63 | 6c 75 64 65 20 74 68 65 |e to inc|lude the|
|00001220| 6d 20 61 6c 73 6f 2e 20 | 41 6c 73 6f 20 63 6f 6d |m also. |Also com|
|00001230| 70 69 6c 61 74 69 6f 6e | 73 20 73 68 6f 75 6c 64 |pilation|s should|
|00001240| 20 68 61 76 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 | have th|e follow|
|00001250| 69 6e 67 20 66 6f 72 6d | 3a 0d 0a 5c 70 61 72 0d |ing form|:..\par.|
|00001260| 0a 7b 5c 62 66 20 63 63 | 5c 20 5b 66 6c 61 67 73 |.{\bf cc|\ [flags|
|00001270| 5d 5c 20 66 69 6c 65 5c | 20 2e 2e 2e 5c 20 2d 6c |]\ file\| ...\ -l|
|00001280| 77 69 64 67 65 74 73 5c | 20 2d 6c 63 75 72 73 65 |widgets\| -lcurse|
|00001290| 73 7d 0d 0a 0d 0a 5c 73 | 68 65 61 64 7b 54 79 70 |s}....\s|head{Typ|
|000012a0| 65 20 44 65 66 69 6e 69 | 74 69 6f 6e 73 7d 0d 0a |e Defini|tions}..|
|000012b0| 5c 70 61 72 5c 6e 6f 69 | 6e 64 65 6e 74 0d 0a 54 |\par\noi|ndent..T|
|000012c0| 68 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 77 68 69 |he funct|ions whi|
|000012d0| 63 68 20 63 72 65 61 74 | 65 20 77 69 64 67 65 74 |ch creat|e widget|
|000012e0| 73 20 72 65 74 75 72 6e | 20 61 20 74 79 70 65 20 |s return| a type |
|000012f0| 0d 0a 7b 5c 62 66 20 57 | 49 44 47 45 54 7d 0d 0a |..{\bf W|IDGET}..|
|00001300| 77 68 69 63 68 20 69 73 | 20 75 73 65 64 20 66 6f |which is| used fo|
|00001310| 72 20 6c 61 74 65 72 20 | 69 64 65 6e 74 69 66 69 |r later |identifi|
|00001320| 63 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 77 69 |cation o|f the wi|
|00001330| 64 67 65 74 2e 0d 0a 5c | 70 61 72 5c 6e 6f 69 6e |dget...\|par\noin|
|00001340| 64 65 6e 74 0d 0a 49 66 | 20 61 20 66 75 6e 63 74 |dent..If| a funct|
|00001350| 69 6f 6e 20 69 73 20 72 | 65 71 75 69 72 65 64 20 |ion is r|equired |
|00001360| 74 6f 20 72 65 74 75 72 | 6e 20 61 20 77 69 64 67 |to retur|n a widg|
|00001370| 65 74 20 69 64 65 6e 74 | 69 66 69 65 72 2c 20 74 |et ident|ifier, t|
|00001380| 68 65 6e 20 69 74 20 77 | 69 6c 6c 20 72 65 74 75 |hen it w|ill retu|
|00001390| 72 6e 20 0d 0a 7b 5c 62 | 66 20 4e 55 4c 4c 57 49 |rn ..{\b|f NULLWI|
|000013a0| 44 47 45 54 7d 0d 0a 75 | 70 6f 6e 20 65 72 72 6f |DGET}..u|pon erro|
|000013b0| 72 2e 0d 0a 0d 0a 5c 73 | 68 65 61 64 7b 53 63 72 |r.....\s|head{Scr|
|000013c0| 65 65 6e 20 52 65 66 72 | 65 73 68 7d 0d 0a 5c 70 |een Refr|esh}..\p|
|000013d0| 61 72 5c 6e 6f 69 6e 64 | 65 6e 74 0d 0a 54 68 65 |ar\noind|ent..The|
|000013e0| 20 6c 69 62 72 61 72 79 | 20 73 75 70 70 6f 72 74 | library| support|
|000013f0| 73 20 61 20 73 74 61 6e | 64 61 72 64 20 73 63 72 |s a stan|dard scr|
|00001400| 65 65 6e 20 72 65 66 72 | 65 73 68 20 69 6e 76 6f |een refr|esh invo|
|00001410| 6b 65 64 20 62 79 20 5c | 5e 7b 7d 4c 2e 0d 0a 0d |ked by \|^{}L....|
|00001420| 0a 5c 6e 65 77 70 61 67 | 65 0d 0a 7b 5c 6e 6f 62 |.\newpag|e..{\nob|
|00001430| 72 65 61 6b 0d 0a 5c 73 | 68 65 61 64 7b 55 53 41 |reak..\s|head{USA|
|00001440| 47 45 7d 0d 0a 5c 73 68 | 65 61 64 7b 47 65 74 74 |GE}..\sh|ead{Gett|
|00001450| 69 6e 67 20 53 74 61 72 | 74 65 64 7d 0d 0a 5c 70 |ing Star|ted}..\p|
|00001460| 61 72 5c 6e 6f 69 6e 64 | 65 6e 74 0d 0a 54 68 65 |ar\noind|ent..The|
|00001470| 20 66 69 72 73 74 20 74 | 68 69 6e 67 20 74 6f 20 | first t|hing to |
|00001480| 64 6f 20 77 68 65 6e 20 | 75 73 69 6e 67 20 74 68 |do when |using th|
|00001490| 65 20 6c 69 62 72 61 72 | 79 20 69 73 20 73 65 74 |e librar|y is set|
|000014a0| 20 75 70 20 74 68 65 20 | 77 69 6e 64 6f 77 69 6e | up the |windowin|
|000014b0| 67 20 73 79 73 74 65 6d | 20 62 79 20 63 61 6c 6c |g system| by call|
|000014c0| 69 6e 67 20 0d 0a 5c 70 | 61 72 5c 6e 6f 69 6e 64 |ing ..\p|ar\noind|
|000014d0| 65 6e 74 0d 0a 5c 69 6e | 64 7b 30 2e 35 69 6e 7d |ent..\in|d{0.5in}|
|000014e0| 0d 0a 69 6e 69 74 69 61 | 6c 69 73 65 77 69 64 67 |..initia|lisewidg|
|000014f0| 65 74 73 28 29 0d 0a 5c | 69 6e 64 7b 30 2e 30 65 |ets()..\|ind{0.0e|
|00001500| 6d 7d 0d 0a 0d 0a 5c 73 | 68 65 61 64 7b 43 72 65 |m}....\s|head{Cre|
|00001510| 61 74 69 6e 67 20 57 69 | 64 67 65 74 73 7d 0d 0a |ating Wi|dgets}..|
|00001520| 5c 70 61 72 5c 6e 6f 69 | 6e 64 65 6e 74 0d 0a 5c |\par\noi|ndent..\|
|00001530| 6e 77 6c 0d 0a 0d 0a 5c | 69 6e 64 7b 30 2e 35 69 |nwl....\|ind{0.5i|
|00001540| 6e 7d 0d 0a 57 49 44 47 | 45 54 20 6d 6b 63 6d 64 |n}..WIDG|ET mkcmd|
|00001550| 77 69 64 67 65 74 20 28 | 6d 65 73 73 61 67 65 2c |widget (|message,|
|00001560| 20 63 68 2c 20 66 75 6e | 63 74 69 6f 6e 2c 20 72 | ch, fun|ction, r|
|00001570| 6f 77 29 0d 0a 5c 6e 77 | 6c 0d 0a 63 68 61 72 20 |ow)..\nw|l..char |
|00001580| 6d 65 73 73 61 67 65 5b | 5d 3b 0d 0a 5c 6e 77 6c |message[|];..\nwl|
|00001590| 0d 0a 63 68 61 72 20 63 | 68 3b 0d 0a 5c 6e 77 6c |..char c|h;..\nwl|
|000015a0| 0d 0a 69 6e 74 20 0d 0a | 28 2a 66 75 6e 63 29 28 |..int ..|(*func)(|
|000015b0| 29 3b 0d 0a 5c 6e 77 6c | 0d 0a 69 6e 74 20 6c 69 |);..\nwl|..int li|
|000015c0| 6e 65 3b 0d 0a 5c 69 6e | 64 7b 30 2e 30 65 6d 7d |ne;..\in|d{0.0em}|
|000015d0| 0d 0a 5c 70 61 72 5c 6e | 6f 69 6e 64 65 6e 74 0d |..\par\n|oindent.|
|000015e0| 0a 43 72 65 61 74 65 73 | 20 61 20 6e 65 77 20 63 |.Creates| a new c|
|000015f0| 6f 6d 6d 61 6e 64 20 77 | 69 64 67 65 74 2e 20 6d |ommand w|idget. m|
|00001600| 65 73 73 61 67 65 20 68 | 6f 6c 64 73 20 74 68 65 |essage h|olds the|
|00001610| 20 6d 65 73 73 61 67 65 | 20 74 6f 20 62 65 20 64 | message| to be d|
|00001620| 69 73 70 6c 61 79 65 64 | 20 69 6e 20 74 68 65 20 |isplayed| in the |
|00001630| 63 6f 6d 6d 61 6e 64 20 | 77 69 64 67 65 74 2e 20 |command |widget. |
|00001640| 63 68 20 69 73 20 74 68 | 65 20 61 63 74 69 76 61 |ch is th|e activa|
|00001650| 74 69 6f 6e 20 63 68 61 | 72 61 63 74 65 72 20 6f |tion cha|racter o|
|00001660| 6e 20 77 68 69 63 68 20 | 66 75 6e 63 74 69 6f 6e |n which |function|
|00001670| 20 69 73 20 65 78 65 63 | 75 74 65 64 2e 20 72 6f | is exec|uted. ro|
|00001680| 77 20 73 70 65 63 69 66 | 69 65 73 20 77 68 65 72 |w specif|ies wher|
|00001690| 65 20 74 6f 20 70 6c 61 | 63 65 20 74 68 65 20 77 |e to pla|ce the w|
|000016a0| 69 64 67 65 74 20 28 61 | 73 20 64 65 73 63 72 69 |idget (a|s descri|
|000016b0| 62 65 64 20 61 62 6f 76 | 65 29 2e 20 54 68 65 20 |bed abov|e). The |
|000016c0| 72 65 74 75 72 6e 65 64 | 20 76 61 6c 75 65 20 69 |returned| value i|
|000016d0| 73 20 74 68 65 20 77 69 | 64 67 65 74 20 69 64 65 |s the wi|dget ide|
|000016e0| 6e 74 69 66 69 65 72 20 | 66 6f 72 20 6c 61 74 65 |ntifier |for late|
|000016f0| 72 20 75 73 65 2e 0d 0a | 0d 0a 5c 70 61 72 5c 6e |r use...|..\par\n|
|00001700| 6f 69 6e 64 65 6e 74 0d | 0a 5c 69 6e 64 7b 30 2e |oindent.|.\ind{0.|
|00001710| 35 69 6e 7d 0d 0a 57 49 | 44 47 45 54 20 6d 6b 6c |5in}..WI|DGET mkl|
|00001720| 62 6c 77 69 64 67 65 74 | 20 28 6d 65 73 73 61 67 |blwidget| (messag|
|00001730| 65 2c 20 70 6f 73 69 74 | 69 6f 6e 2c 20 73 70 61 |e, posit|ion, spa|
|00001740| 63 65 2c 20 72 6f 77 29 | 0d 0a 5c 6e 77 6c 0d 0a |ce, row)|..\nwl..|
|00001750| 63 68 61 72 20 6d 65 73 | 73 61 67 65 5b 5d 3b 0d |char mes|sage[];.|
|00001760| 0a 5c 6e 77 6c 0d 0a 69 | 6e 74 20 20 70 6f 73 69 |.\nwl..i|nt posi|
|00001770| 74 69 6f 6e 2c 20 73 70 | 61 63 65 2c 20 72 6f 77 |tion, sp|ace, row|
|00001780| 3b 0d 0a 5c 69 6e 64 7b | 30 2e 30 65 6d 7d 0d 0a |;..\ind{|0.0em}..|
|00001790| 5c 70 61 72 5c 6e 6f 69 | 6e 64 65 6e 74 0d 0a 43 |\par\noi|ndent..C|
|000017a0| 72 65 61 74 65 73 20 61 | 20 6e 65 77 20 6c 61 62 |reates a| new lab|
|000017b0| 65 6c 20 77 69 64 67 65 | 74 2e 20 4d 65 73 73 61 |el widge|t. Messa|
|000017c0| 67 65 20 68 6f 6c 64 73 | 20 74 68 65 20 63 6f 6e |ge holds| the con|
|000017d0| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 20 6c 61 62 |tents of| the lab|
|000017e0| 65 6c 2c 20 70 6f 73 69 | 74 69 6f 6e 20 73 70 65 |el, posi|tion spe|
|000017f0| 63 69 66 69 65 73 20 68 | 6f 77 20 74 68 65 20 6d |cifies h|ow the m|
|00001800| 65 73 73 61 67 65 20 69 | 73 20 74 6f 20 61 70 70 |essage i|s to app|
|00001810| 65 61 72 2e 20 55 73 69 | 6e 67 20 74 68 65 20 63 |ear. Usi|ng the c|
|00001820| 6f 6e 73 74 61 6e 74 73 | 20 43 45 4e 54 52 45 2c |onstants| CENTRE,|
|00001830| 20 4c 45 46 54 4a 55 53 | 54 2c 20 52 49 47 48 54 | LEFTJUS|T, RIGHT|
|00001840| 4a 55 53 54 2c 20 4e 4f | 48 49 47 48 2c 20 70 61 |JUST, NO|HIGH, pa|
|00001850| 73 73 20 61 20 63 6f 6d | 62 69 6e 61 74 69 6f 6e |ss a com|bination|
|00001860| 20 74 6f 20 70 6f 73 69 | 74 69 6f 6e 20 65 2e 67 | to posi|tion e.g|
|00001870| 20 43 45 4e 54 52 45 20 | 6f 72 20 4c 45 46 54 4a | CENTRE |or LEFTJ|
|00001880| 55 53 54 24 7c 24 4e 4f | 48 49 47 48 20 65 74 63 |UST$|$NO|HIGH etc|
|00001890| 2e 73 70 61 63 65 20 69 | 6e 64 69 63 61 74 65 73 |.space i|ndicates|
|000018a0| 20 68 6f 77 20 6c 61 72 | 67 65 20 74 68 65 20 6c | how lar|ge the l|
|000018b0| 61 62 65 6c 20 77 69 64 | 67 65 74 20 69 73 20 74 |abel wid|get is t|
|000018c0| 6f 20 62 65 2e 20 41 20 | 70 6f 73 69 74 69 76 65 |o be. A |positive|
|000018d0| 20 76 61 6c 75 65 20 69 | 73 20 74 68 65 20 61 62 | value i|s the ab|
|000018e0| 73 6f 6c 75 74 65 20 6c | 65 6e 67 74 68 20 6f 66 |solute l|ength of|
|000018f0| 20 74 68 65 20 77 69 64 | 67 65 74 2c 20 77 68 65 | the wid|get, whe|
|00001900| 72 65 61 73 20 76 61 6c | 75 65 20 24 3c 24 3d 20 |reas val|ue $<$= |
|00001910| 30 20 73 70 65 63 69 66 | 69 65 73 20 68 6f 77 20 |0 specif|ies how |
|00001920| 66 61 72 20 74 68 65 20 | 77 69 64 67 65 74 20 69 |far the |widget i|
|00001930| 73 20 74 6f 20 62 65 20 | 66 72 6f 6d 20 74 68 65 |s to be |from the|
|00001940| 20 72 69 67 68 74 68 61 | 6e 64 20 65 64 67 65 20 | rightha|nd edge |
|00001950| 6f 66 20 74 68 65 20 73 | 63 72 65 65 6e 2e 20 72 |of the s|creen. r|
|00001960| 6f 77 20 73 70 65 63 69 | 66 69 65 73 20 77 68 65 |ow speci|fies whe|
|00001970| 72 65 20 74 6f 20 70 6c | 61 63 65 20 74 68 65 20 |re to pl|ace the |
|00001980| 77 69 64 67 65 74 20 28 | 61 73 20 64 65 73 63 72 |widget (|as descr|
|00001990| 69 62 65 64 20 61 62 6f | 76 65 29 2e 20 54 68 65 |ibed abo|ve). The|
|000019a0| 20 72 0d 0a 0d 0a 0d 0a | 0d 0a 0d 0a 0d 0a 65 74 | r......|......et|
|000019b0| 75 72 6e 65 64 20 76 61 | 6c 75 65 20 69 73 20 74 |urned va|lue is t|
|000019c0| 68 65 20 77 69 64 67 65 | 74 20 69 64 65 6e 74 69 |he widge|t identi|
|000019d0| 66 69 65 72 20 66 6f 72 | 20 6c 61 74 65 72 20 75 |fier for| later u|
|000019e0| 73 65 2e 0d 0a 0d 0a 5c | 70 61 72 5c 6e 6f 69 6e |se.....\|par\noin|
|000019f0| 64 65 6e 74 0d 0a 5c 69 | 6e 64 7b 30 2e 35 69 6e |dent..\i|nd{0.5in|
|00001a00| 7d 0d 0a 57 49 44 47 45 | 54 20 6d 6b 74 67 6c 77 |}..WIDGE|T mktglw|
|00001a10| 69 64 67 65 74 20 28 6d | 65 73 73 61 67 65 2c 20 |idget (m|essage, |
|00001a20| 6e 75 6d 62 65 72 2c 20 | 74 67 6c 2c 20 74 67 6c |number, |tgl, tgl|
|00001a30| 63 68 2c 20 72 6f 77 29 | 0d 0a 5c 6e 77 6c 0d 0a |ch, row)|..\nwl..|
|00001a40| 63 68 61 72 20 6d 65 73 | 73 61 67 65 5b 5d 3b 0d |char mes|sage[];.|
|00001a50| 0a 5c 6e 77 6c 0d 0a 69 | 6e 74 20 20 6e 75 6d 62 |.\nwl..i|nt numb|
|00001a60| 65 72 3b 0d 0a 5c 6e 77 | 6c 0d 0a 63 68 61 72 20 |er;..\nw|l..char |
|00001a70| 74 67 6c 5b 31 30 5d 5b | 32 30 5d 3b 0d 0a 5c 6e |tgl[10][|20];..\n|
|00001a80| 77 6c 0d 0a 63 68 61 72 | 20 74 67 6c 63 68 3b 0d |wl..char| tglch;.|
|00001a90| 0a 5c 6e 77 6c 0d 0a 69 | 6e 74 20 20 72 6f 77 3b |.\nwl..i|nt row;|
|00001aa0| 0d 0a 5c 69 6e 64 7b 30 | 2e 30 65 6d 7d 0d 0a 5c |..\ind{0|.0em}..\|
|00001ab0| 70 61 72 5c 6e 6f 69 6e | 64 65 6e 74 0d 0a 43 72 |par\noin|dent..Cr|
|00001ac0| 65 61 74 65 73 20 61 20 | 6e 65 77 20 74 6f 67 67 |eates a |new togg|
|00001ad0| 6c 65 20 77 69 64 67 65 | 74 2e 20 6d 65 73 73 61 |le widge|t. messa|
|00001ae0| 67 65 20 63 6f 6e 74 61 | 69 6e 73 20 61 20 6c 61 |ge conta|ins a la|
|00001af0| 62 65 6c 20 66 6f 72 20 | 74 68 65 20 77 69 64 67 |bel for |the widg|
|00001b00| 65 74 2c 20 61 6e 64 20 | 6e 75 6d 62 65 72 20 68 |et, and |number h|
|00001b10| 6f 6c 64 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |olds the| number |
|00001b20| 6f 66 20 74 6f 67 67 6c | 65 20 76 61 6c 75 65 73 |of toggl|e values|
|00001b30| 2e 20 74 67 6c 20 69 73 | 20 75 73 65 64 20 66 6f |. tgl is| used fo|
|00001b40| 72 20 68 6f 6c 64 69 6e | 67 20 61 63 74 75 61 6c |r holdin|g actual|
|00001b50| 20 74 6f 67 67 6c 65 20 | 76 61 6c 75 65 73 20 77 | toggle |values w|
|00001b60| 68 69 63 68 20 61 72 65 | 20 74 6f 67 67 6c 65 64 |hich are| toggled|
|00001b70| 20 62 65 74 77 65 65 6e | 20 75 73 69 6e 67 20 74 | between| using t|
|00001b80| 68 65 20 61 63 74 69 76 | 61 74 69 6f 6e 20 63 68 |he activ|ation ch|
|00001b90| 61 72 61 63 74 65 72 20 | 74 67 6c 63 68 2e 20 41 |aracter |tglch. A|
|00001ba0| 74 20 70 72 65 73 65 6e | 74 20 74 68 65 72 65 20 |t presen|t there |
|00001bb0| 69 73 20 61 20 6c 69 6d | 69 74 20 6f 66 20 31 30 |is a lim|it of 10|
|00001bc0| 20 74 6f 67 67 6c 65 20 | 76 61 6c 75 65 73 2c 20 | toggle |values, |
|00001bd0| 65 61 63 68 20 62 65 69 | 6e 67 20 61 20 6d 61 78 |each bei|ng a max|
|00001be0| 69 6d 75 6d 20 6c 65 6e | 67 74 68 20 6f 66 20 32 |imum len|gth of 2|
|00001bf0| 30 20 63 68 61 72 61 63 | 74 65 72 73 2e 20 72 6f |0 charac|ters. ro|
|00001c00| 77 20 73 70 65 63 69 66 | 69 65 73 20 77 68 65 72 |w specif|ies wher|
|00001c10| 65 20 74 6f 20 70 6c 61 | 63 65 20 74 68 65 20 77 |e to pla|ce the w|
|00001c20| 69 64 67 65 74 20 28 61 | 73 20 64 65 73 63 72 69 |idget (a|s descri|
|00001c30| 62 65 64 20 61 62 6f 76 | 65 29 2e 20 54 68 65 20 |bed abov|e). The |
|00001c40| 72 65 74 75 72 6e 65 64 | 20 76 61 6c 75 65 20 69 |returned| value i|
|00001c50| 73 20 74 68 65 20 77 69 | 64 67 65 74 20 69 64 65 |s the wi|dget ide|
|00001c60| 6e 74 69 66 69 65 72 20 | 66 6f 72 20 6c 61 74 65 |ntifier |for late|
|00001c70| 72 20 75 73 65 2e 0d 0a | 5c 70 61 72 5c 6e 6f 69 |r use...|\par\noi|
|00001c80| 6e 64 65 6e 74 0d 0a 7d | 0d 0a 5c 6e 65 77 70 61 |ndent..}|..\newpa|
|00001c90| 67 65 0d 0a 7b 5c 6e 6f | 62 72 65 61 6b 0d 0a 5c |ge..{\no|break..\|
|00001ca0| 69 6e 64 7b 30 2e 35 69 | 6e 7d 0d 0a 57 49 44 47 |ind{0.5i|n}..WIDG|
|00001cb0| 45 54 20 6d 6b 69 6e 70 | 77 69 64 67 65 74 20 28 |ET mkinp|widget (|
|00001cc0| 6d 65 73 73 61 67 65 2c | 20 63 68 61 72 61 63 74 |message,| charact|
|00001cd0| 65 72 2c 20 69 6e 70 75 | 74 2c 20 6c 65 6e 67 74 |er, inpu|t, lengt|
|00001ce0| 68 73 74 72 2c 20 6c 65 | 6e 67 74 68 77 69 64 2c |hstr, le|ngthwid,|
|00001cf0| 20 72 6f 77 2c 20 65 78 | 65 63 29 0d 0a 5c 6e 77 | row, ex|ec)..\nw|
|00001d00| 6c 0d 0a 63 68 61 72 20 | 6d 65 73 73 61 67 65 5b |l..char |message[|
|00001d10| 5d 2c 20 63 68 61 72 61 | 63 74 65 72 2c 20 69 6e |], chara|cter, in|
|00001d20| 70 75 74 5b 5d 3b 0d 0a | 5c 6e 77 6c 0d 0a 69 6e |put[];..|\nwl..in|
|00001d30| 74 20 20 6c 65 6e 67 74 | 68 73 74 72 2c 20 6c 65 |t lengt|hstr, le|
|00001d40| 6e 67 74 68 77 69 64 2c | 20 72 6f 77 2c 20 65 78 |ngthwid,| row, ex|
|00001d50| 65 63 3b 20 0d 0a 5c 69 | 6e 64 7b 30 2e 30 65 6d |ec; ..\i|nd{0.0em|
|00001d60| 7d 0d 0a 5c 70 61 72 5c | 6e 6f 69 6e 64 65 6e 74 |}..\par\|noindent|
|00001d70| 0d 0a 43 72 65 61 74 65 | 73 20 61 20 6e 65 77 20 |..Create|s a new |
|00001d80| 69 6e 70 75 74 20 77 69 | 64 67 65 74 2e 20 6d 65 |input wi|dget. me|
|00001d90| 73 73 61 67 65 20 63 6f | 6e 74 61 69 6e 73 20 74 |ssage co|ntains t|
|00001da0| 68 65 20 6c 61 62 65 6c | 20 66 6f 72 20 74 68 65 |he label| for the|
|00001db0| 20 77 69 64 67 65 74 2c | 20 61 6e 64 20 63 68 61 | widget,| and cha|
|00001dc0| 72 61 63 74 65 72 20 69 | 73 20 74 68 65 20 61 63 |racter i|s the ac|
|00001dd0| 74 69 76 61 74 69 6f 6e | 20 63 68 61 72 61 63 74 |tivation| charact|
|00001de0| 65 72 20 66 6f 72 20 74 | 68 65 20 77 69 64 67 65 |er for t|he widge|
|00001df0| 74 2e 20 69 6e 70 75 74 | 20 69 73 20 74 68 65 20 |t. input| is the |
|00001e00| 76 61 72 69 61 62 6c 65 | 20 69 6e 20 77 68 69 63 |variable| in whic|
|00001e10| 68 20 74 68 65 20 75 73 | 65 72 20 77 69 73 68 65 |h the us|er wishe|
|00001e20| 73 20 74 68 65 20 64 61 | 74 61 20 6f 62 74 61 69 |s the da|ta obtai|
|00001e30| 6e 65 64 20 66 72 6f 6d | 20 74 68 65 20 69 6e 70 |ned from| the inp|
|00001e40| 75 74 20 77 69 64 67 65 | 74 20 74 6f 20 62 65 20 |ut widge|t to be |
|00001e50| 70 6c 61 63 65 64 2c 20 | 6c 65 6e 67 74 68 73 74 |placed, |lengthst|
|00001e60| 72 20 69 73 20 74 68 65 | 20 6c 65 6e 67 74 68 20 |r is the| length |
|00001e70| 6f 66 20 69 6e 70 75 74 | 2e 20 6c 65 6e 67 74 68 |of input|. length|
|00001e80| 77 69 64 20 73 70 65 63 | 69 66 69 65 73 20 68 6f |wid spec|ifies ho|
|00001e90| 77 20 62 69 67 20 74 6f | 20 6d 61 6b 65 20 74 68 |w big to| make th|
|00001ea0| 65 20 77 69 64 67 65 74 | 2e 20 41 20 70 6f 73 69 |e widget|. A posi|
|00001eb0| 74 69 76 65 20 76 61 6c | 75 65 20 69 6e 64 69 63 |tive val|ue indic|
|00001ec0| 61 74 65 73 20 74 68 65 | 20 61 62 73 6f 6c 75 74 |ates the| absolut|
|00001ed0| 65 20 6c 65 6e 67 74 68 | 20 6f 66 20 74 68 65 20 |e length| of the |
|00001ee0| 77 69 64 67 65 74 2c 20 | 77 68 65 72 65 20 61 73 |widget, |where as|
|00001ef0| 20 61 20 76 61 6c 75 65 | 20 24 3c 24 3d 20 30 20 | a value| $<$= 0 |
|00001f00| 69 6e 64 69 63 61 74 65 | 73 20 68 6f 77 20 66 61 |indicate|s how fa|
|00001f10| 72 20 66 72 6f 6d 20 74 | 68 65 20 72 69 67 68 74 |r from t|he right|
|00001f20| 68 61 6e 64 20 65 64 67 | 65 20 74 68 65 20 77 69 |hand edg|e the wi|
|00001f30| 64 67 65 74 20 69 73 20 | 74 6f 20 62 65 2e 20 65 |dget is |to be. e|
|00001f40| 78 65 63 20 69 73 20 75 | 73 65 64 20 74 6f 20 69 |xec is u|sed to i|
|00001f50| 6e 64 69 63 61 74 65 20 | 77 68 65 74 68 65 72 20 |ndicate |whether |
|00001f60| 74 68 65 20 77 69 64 67 | 65 74 20 73 68 6f 75 6c |the widg|et shoul|
|00001f70| 64 20 62 0d 0a 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 65 |d b.....|.......e|
|00001f80| 20 61 63 74 69 76 61 74 | 65 64 20 6f 6e 20 63 72 | activat|ed on cr|
|00001f90| 65 61 74 69 6f 6e 20 62 | 79 20 28 70 61 73 73 69 |eation b|y (passi|
|00001fa0| 6e 67 20 45 58 45 43 29 | 2c 20 6f 72 20 73 68 6f |ng EXEC)|, or sho|
|00001fb0| 75 6c 64 20 72 65 6d 61 | 69 6e 20 64 6f 72 6d 61 |uld rema|in dorma|
|00001fc0| 6e 74 20 75 6e 74 69 6c | 20 74 68 65 20 61 63 74 |nt until| the act|
|00001fd0| 69 76 61 74 69 6f 6e 20 | 63 68 61 72 61 63 74 65 |ivation |characte|
|00001fe0| 72 20 69 73 20 75 73 65 | 64 20 28 70 61 73 73 69 |r is use|d (passi|
|00001ff0| 6e 67 20 4e 4f 45 58 45 | 43 29 2e 20 28 6e 2e 62 |ng NOEXE|C). (n.b|
|00002000| 20 77 68 65 6e 20 70 61 | 73 73 69 6e 67 20 45 58 | when pa|ssing EX|
|00002010| 45 43 20 61 6e 20 61 63 | 74 69 76 61 74 69 6f 6e |EC an ac|tivation|
|00002020| 20 63 68 61 72 61 63 74 | 65 72 20 69 73 20 6e 6f | charact|er is no|
|00002030| 74 20 6e 65 65 64 65 64 | 20 74 68 65 72 65 66 6f |t needed| therefo|
|00002040| 72 65 20 6f 6e 65 20 63 | 6f 75 6c 64 20 70 61 73 |re one c|ould pas|
|00002050| 73 20 4e 55 4c 4c 20 66 | 6f 72 20 63 68 61 72 61 |s NULL f|or chara|
|00002060| 63 74 65 72 2e 29 0d 0a | 0d 0a 5c 73 68 65 61 64 |cter.)..|..\shead|
|00002070| 7b 54 65 78 74 20 57 69 | 6e 64 6f 77 20 4d 61 6e |{Text Wi|ndow Man|
|00002080| 61 67 65 6d 65 6e 74 7d | 0d 0a 5c 70 61 72 5c 6e |agement}|..\par\n|
|00002090| 6f 69 6e 64 65 6e 74 0d | 0a 5c 6e 77 6c 0d 0a 0d |oindent.|.\nwl...|
|000020a0| 0a 5c 69 6e 64 7b 30 2e | 35 69 6e 7d 0d 0a 69 6e |.\ind{0.|5in}..in|
|000020b0| 74 20 6f 70 65 6e 74 65 | 78 74 77 69 6e 64 6f 77 |t opente|xtwindow|
|000020c0| 20 28 70 6f 73 69 74 69 | 6f 6e 2c 20 62 6f 72 64 | (positi|on, bord|
|000020d0| 65 72 29 0d 0a 5c 6e 77 | 6c 0d 0a 69 6e 74 20 70 |er)..\nw|l..int p|
|000020e0| 6f 73 69 74 69 6f 6e 2c | 20 62 6f 72 64 65 72 3b |osition,| border;|
|000020f0| 0d 0a 5c 69 6e 64 7b 30 | 2e 30 65 6d 7d 0d 0a 5c |..\ind{0|.0em}..\|
|00002100| 70 61 72 5c 6e 6f 69 6e | 64 65 6e 74 0d 0a 4f 70 |par\noin|dent..Op|
|00002110| 65 6e 73 20 61 6e 64 20 | 64 69 73 70 6c 61 79 73 |ens and |displays|
|00002120| 20 74 68 65 20 74 65 78 | 74 20 77 69 6e 64 6f 77 | the tex|t window|
|00002130| 2e 20 70 6f 73 69 74 69 | 6f 6e 20 73 70 65 63 69 |. positi|on speci|
|00002140| 66 69 65 73 20 77 68 65 | 72 65 20 74 68 65 20 77 |fies whe|re the w|
|00002150| 69 6e 64 6f 77 20 69 73 | 20 74 6f 20 67 6f 2e 20 |indow is| to go. |
|00002160| 69 2e 65 20 70 6f 73 69 | 74 69 6f 6e 20 3d 20 30 |i.e posi|tion = 0|
|00002170| 20 77 69 6c 6c 20 70 6c | 61 63 65 20 74 68 65 20 | will pl|ace the |
|00002180| 77 69 6e 64 6f 77 20 69 | 6d 6d 65 64 69 61 74 65 |window i|mmediate|
|00002190| 6c 79 20 62 65 6c 6f 77 | 20 74 68 65 20 6c 6f 77 |ly below| the low|
|000021a0| 65 73 74 20 77 69 64 67 | 65 74 2c 20 70 6f 73 69 |est widg|et, posi|
|000021b0| 74 69 6f 6e 20 3d 20 31 | 20 77 69 6c 6c 20 61 6c |tion = 1| will al|
|000021c0| 6c 6f 77 20 72 6f 6f 6d | 20 66 6f 72 20 31 20 6d |low room| for 1 m|
|000021d0| 6f 72 65 20 72 6f 77 20 | 6f 66 20 77 69 64 67 65 |ore row |of widge|
|000021e0| 74 73 20 62 65 6c 6f 77 | 20 74 68 65 20 63 75 72 |ts below| the cur|
|000021f0| 72 65 6e 74 20 6c 6f 77 | 65 73 74 20 62 65 66 6f |rent low|est befo|
|00002200| 72 65 20 70 6c 61 63 69 | 6e 67 20 74 68 65 20 77 |re placi|ng the w|
|00002210| 69 6e 64 6f 77 20 65 74 | 63 2e 20 62 6f 72 64 65 |indow et|c. borde|
|00002220| 72 20 69 73 20 75 73 65 | 64 20 74 6f 20 69 6e 64 |r is use|d to ind|
|00002230| 69 63 61 74 65 20 77 68 | 65 74 68 65 72 20 74 68 |icate wh|ether th|
|00002240| 65 20 77 69 6e 64 6f 77 | 20 73 68 6f 75 6c 64 20 |e window| should |
|00002250| 62 65 20 62 6f 72 64 65 | 72 65 64 2e 20 69 2e 65 |be borde|red. i.e|
|00002260| 20 75 73 69 6e 67 20 74 | 68 65 20 70 61 72 61 6d | using t|he param|
|00002270| 65 74 65 72 73 20 56 45 | 52 54 49 43 41 4c 20 5c |eters VE|RTICAL \|
|00002280| 26 20 48 4f 52 49 5a 4f | 4e 54 41 4c 2c 20 6f 6e |& HORIZO|NTAL, on|
|00002290| 65 20 63 61 6e 20 73 70 | 65 63 69 66 79 20 77 68 |e can sp|ecify wh|
|000022a0| 65 74 68 65 72 20 74 68 | 65 20 77 69 6e 64 6f 77 |ether th|e window|
|000022b0| 20 73 68 6f 75 6c 64 20 | 62 65 20 62 6f 72 64 65 | should |be borde|
|000022c0| 72 65 64 20 76 65 72 74 | 69 63 61 6c 6c 79 20 28 |red vert|ically (|
|000022d0| 70 61 73 73 69 6e 67 20 | 56 45 52 54 49 43 41 4c |passing |VERTICAL|
|000022e0| 29 2c 20 68 6f 72 69 7a | 6f 6e 74 61 6c 6c 79 20 |), horiz|ontally |
|000022f0| 28 70 61 73 73 69 6e 67 | 20 48 4f 52 49 5a 4f 4e |(passing| HORIZON|
|00002300| 54 41 4c 29 2c 20 62 6f | 74 68 20 28 70 61 0d 0a |TAL), bo|th (pa..|
|00002310| 0d 0a 0d 0a 0d 0a 0d 0a | 0d 0a 73 73 69 6e 67 20 |........|..ssing |
|00002320| 56 45 52 54 49 43 41 4c | 24 7c 24 48 4f 52 49 5a |VERTICAL|$|$HORIZ|
|00002330| 4f 4e 54 41 4c 29 2c 20 | 6f 72 20 6e 65 69 74 68 |ONTAL), |or neith|
|00002340| 65 72 20 28 70 61 73 73 | 69 6e 67 20 30 29 2e 20 |er (pass|ing 0). |
|00002350| 54 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 74 |The func|tion ret|
|00002360| 75 72 6e 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |urns the| number |
|00002370| 6f 66 20 6c 69 6e 65 73 | 20 77 69 74 68 69 6e 20 |of lines| within |
|00002380| 74 68 65 20 77 69 6e 64 | 6f 77 2e 0d 0a 0d 0a 5c |the wind|ow.....\|
|00002390| 69 6e 64 7b 30 2e 35 69 | 6e 7d 0d 0a 72 65 70 6f |ind{0.5i|n}..repo|
|000023a0| 72 74 20 28 6d 65 73 73 | 61 67 65 29 0d 0a 5c 6e |rt (mess|age)..\n|
|000023b0| 77 6c 0d 0a 63 68 61 72 | 20 2a 6d 65 73 73 61 67 |wl..char| *messag|
|000023c0| 65 3b 0d 0a 5c 69 6e 64 | 7b 30 2e 30 65 6d 7d 0d |e;..\ind|{0.0em}.|
|000023d0| 0a 5c 70 61 72 5c 6e 6f | 69 6e 64 65 6e 74 0d 0a |.\par\no|indent..|
|000023e0| 44 69 73 70 6c 61 79 73 | 20 74 68 65 20 67 69 76 |Displays| the giv|
|000023f0| 65 6e 20 6d 65 73 73 61 | 67 65 20 69 6e 20 74 68 |en messa|ge in th|
|00002400| 65 20 74 65 78 74 20 77 | 69 6e 64 6f 77 2e 20 53 |e text w|indow. S|
|00002410| 63 72 6f 6c 6c 69 6e 67 | 20 69 73 20 64 6f 6e 65 |crolling| is done|
|00002420| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 77 | automat|ically w|
|00002430| 68 65 6e 20 74 68 65 20 | 62 6f 74 74 6f 6d 20 6f |hen the |bottom o|
|00002440| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 20 69 73 20 |f the wi|ndow is |
|00002450| 72 65 61 63 68 65 64 20 | 61 6e 64 20 69 73 20 74 |reached |and is t|
|00002460| 68 65 72 65 66 6f 72 65 | 20 6f 66 20 6e 6f 20 63 |herefore| of no c|
|00002470| 6f 6e 63 65 72 6e 20 66 | 6f 72 20 74 68 65 20 75 |oncern f|or the u|
|00002480| 73 65 72 2e 0d 0a 0d 0a | 5c 69 6e 64 7b 30 2e 35 |ser.....|\ind{0.5|
|00002490| 69 6e 7d 0d 0a 63 6c 65 | 61 72 74 65 78 74 77 69 |in}..cle|artextwi|
|000024a0| 6e 64 6f 77 20 28 29 0d | 0a 5c 69 6e 64 7b 30 2e |ndow ().|.\ind{0.|
|000024b0| 30 65 6d 7d 0d 0a 5c 70 | 61 72 5c 6e 6f 69 6e 64 |0em}..\p|ar\noind|
|000024c0| 65 6e 74 0d 0a 43 6c 65 | 61 72 73 20 74 68 65 20 |ent..Cle|ars the |
|000024d0| 74 65 78 74 20 77 69 6e | 64 6f 77 20 61 6e 64 20 |text win|dow and |
|000024e0| 72 65 74 75 72 6e 73 20 | 69 74 73 20 63 75 72 73 |returns |its curs|
|000024f0| 6f 72 20 74 6f 20 74 68 | 65 20 74 6f 70 20 6c 65 |or to th|e top le|
|00002500| 66 74 68 61 6e 64 20 63 | 6f 72 6e 65 72 2e 20 0d |fthand c|orner. .|
|00002510| 0a 0d 0a 5c 69 6e 64 7b | 30 2e 35 69 6e 7d 0d 0a |...\ind{|0.5in}..|
|00002520| 6b 69 6c 6c 74 65 78 74 | 77 69 6e 64 6f 77 20 28 |killtext|window (|
|00002530| 29 0d 0a 5c 69 6e 64 7b | 30 2e 30 65 6d 7d 0d 0a |)..\ind{|0.0em}..|
|00002540| 5c 70 61 72 5c 6e 6f 69 | 6e 64 65 6e 74 0d 0a 44 |\par\noi|ndent..D|
|00002550| 65 73 74 72 6f 79 73 20 | 74 68 65 20 74 65 78 74 |estroys |the text|
|00002560| 20 77 69 6e 64 6f 77 2e | 20 54 68 65 20 74 65 78 | window.| The tex|
|00002570| 74 20 77 69 6e 64 6f 77 | 20 63 61 6e 20 62 65 20 |t window| can be |
|00002580| 72 65 64 65 66 69 6e 65 | 64 20 61 74 20 61 20 6c |redefine|d at a l|
|00002590| 61 74 65 72 20 64 61 74 | 65 2e 0d 0a 0d 0a 5c 73 |ater dat|e.....\s|
|000025a0| 68 65 61 64 7b 4b 69 6c | 6c 69 6e 67 20 57 69 64 |head{Kil|ling Wid|
|000025b0| 67 65 74 73 7d 0d 0a 0d | 0a 5c 70 61 72 5c 6e 6f |gets}...|.\par\no|
|000025c0| 69 6e 64 65 6e 74 0d 0a | 5c 6e 77 6c 0d 0a 5c 69 |indent..|\nwl..\i|
|000025d0| 6e 64 7b 30 2e 35 69 6e | 7d 0d 0a 69 6e 74 20 6b |nd{0.5in|}..int k|
|000025e0| 69 6c 6c 77 69 64 67 65 | 74 20 28 70 74 72 29 0d |illwidge|t (ptr).|
|000025f0| 0a 5c 6e 77 6c 0d 0a 57 | 49 44 47 45 54 20 70 74 |.\nwl..W|IDGET pt|
|00002600| 72 3b 0d 0a 5c 69 6e 64 | 7b 30 2e 30 65 6d 7d 0d |r;..\ind|{0.0em}.|
|00002610| 0a 5c 70 61 72 5c 6e 6f | 69 6e 64 65 6e 74 0d 0a |.\par\no|indent..|
|00002620| 4b 69 6c 6c 73 20 74 68 | 65 20 67 69 76 65 6e 20 |Kills th|e given |
|00002630| 77 69 64 67 65 74 2e 20 | 74 68 65 20 66 75 6e 63 |widget. |the func|
|00002640| 74 69 6f 6e 20 72 65 74 | 75 72 6e 73 20 54 52 55 |tion ret|urns TRU|
|00002650| 45 20 69 66 20 73 75 63 | 63 65 73 73 66 75 6c 6c |E if suc|cessfull|
|00002660| 20 6f 72 20 46 41 4c 53 | 45 20 69 66 20 74 68 65 | or FALS|E if the|
|00002670| 20 77 69 64 67 65 74 20 | 64 6f 65 73 6e 27 74 20 | widget |doesn't |
|00002680| 65 78 69 73 74 2e 0d 0a | 7d 0d 0a 5c 6e 65 77 70 |exist...|}..\newp|
|00002690| 61 67 65 0d 0a 7b 5c 6e | 6f 62 72 65 61 6b 0d 0a |age..{\n|obreak..|
|000026a0| 5c 73 68 65 61 64 7b 49 | 6e 74 65 72 61 63 74 69 |\shead{I|nteracti|
|000026b0| 6f 6e 7d 0d 0a 0d 0a 5c | 70 61 72 5c 6e 6f 69 6e |on}....\|par\noin|
|000026c0| 64 65 6e 74 0d 0a 5c 6e | 77 6c 0d 0a 5c 69 6e 64 |dent..\n|wl..\ind|
|000026d0| 7b 30 2e 35 69 6e 7d 0d | 0a 57 49 44 47 45 54 20 |{0.5in}.|.WIDGET |
|000026e0| 77 69 64 67 65 74 69 6e | 70 75 74 20 28 29 0d 0a |widgetin|put ()..|
|000026f0| 5c 69 6e 64 7b 30 2e 30 | 65 6d 7d 0d 0a 5c 70 61 |\ind{0.0|em}..\pa|
|00002700| 72 5c 6e 6f 69 6e 64 65 | 6e 74 0d 0a 57 61 69 74 |r\noinde|nt..Wait|
|00002710| 20 66 6f 72 20 69 6e 70 | 75 74 20 66 72 6f 6d 20 | for inp|ut from |
|00002720| 77 69 64 67 65 74 73 2e | 20 50 72 6f 67 72 61 6d |widgets.| Program|
|00002730| 20 63 6f 6e 74 72 6f 6c | 20 69 73 20 70 61 73 73 | control| is pass|
|00002740| 65 64 20 62 61 63 6b 20 | 77 68 65 6e 20 3a 2d 0d |ed back |when :-.|
|00002750| 0a 5c 6e 77 6c 0d 0a 61 | 29 20 41 20 43 6f 6d 6d |.\nwl..a|) A Comm|
|00002760| 61 6e 64 20 77 69 64 67 | 65 74 20 69 73 20 61 63 |and widg|et is ac|
|00002770| 74 69 76 61 74 65 64 20 | 61 6e 64 20 63 6f 6e 74 |tivated |and cont|
|00002780| 72 6f 6c 20 69 73 20 70 | 61 73 73 65 64 20 74 6f |rol is p|assed to|
|00002790| 20 69 74 73 20 61 73 73 | 6f 63 69 61 74 65 64 20 | its ass|ociated |
|000027a0| 66 75 6e 63 74 69 6f 6e | 2e 0d 0a 5c 6e 77 6c 0d |function|...\nwl.|
|000027b0| 0a 62 29 20 41 6e 20 69 | 6e 70 75 74 20 77 69 64 |.b) An i|nput wid|
|000027c0| 67 65 74 20 69 73 20 61 | 63 74 69 76 61 74 65 64 |get is a|ctivated|
|000027d0| 20 61 6e 64 20 61 66 74 | 65 72 20 73 75 62 73 65 | and aft|er subse|
|000027e0| 71 75 65 6e 74 20 69 6e | 70 75 74 2c 20 63 6f 6e |quent in|put, con|
|000027f0| 74 72 6f 6c 20 69 73 20 | 70 61 73 73 65 64 20 74 |trol is |passed t|
|00002800| 6f 20 74 68 65 20 63 61 | 6c 6c 69 6e 67 20 66 75 |o the ca|lling fu|
|00002810| 6e 63 74 69 6f 6e 20 77 | 69 74 68 20 74 68 65 20 |nction w|ith the |
|00002820| 77 69 64 67 65 74 20 70 | 6f 69 6e 74 65 72 20 6f |widget p|ointer o|
|00002830| 66 20 74 68 65 20 61 63 | 74 69 76 61 74 65 64 20 |f the ac|tivated |
|00002840| 69 6e 70 75 74 20 77 69 | 64 67 65 74 2e 0d 0a 5c |input wi|dget...\|
|00002850| 6e 77 6c 0d 0a 41 63 74 | 69 76 61 74 69 6e 67 20 |nwl..Act|ivating |
|00002860| 61 20 74 6f 67 67 6c 65 | 20 77 69 64 67 65 74 20 |a toggle| widget |
|00002870| 6a 75 73 74 20 74 6f 67 | 67 6c 65 73 20 74 68 65 |just tog|gles the|
|00002880| 20 77 69 64 67 65 74 2c | 20 63 6f 6e 74 72 6f 6c | widget,| control|
|00002890| 20 69 73 20 6f 6e 6c 79 | 20 70 61 73 73 65 64 20 | is only| passed |
|000028a0| 62 61 63 6b 20 75 70 6f | 6e 20 6f 6e 65 20 6f 66 |back upo|n one of|
|000028b0| 20 74 68 65 20 61 62 6f | 76 65 20 63 6f 6e 64 69 | the abo|ve condi|
|000028c0| 74 69 6f 6e 73 2e 0d 0a | 0d 0a 5c 70 61 72 5c 6e |tions...|..\par\n|
|000028d0| 6f 69 6e 64 65 6e 74 0d | 0a 5c 6e 77 6c 0d 0a 5c |oindent.|.\nwl..\|
|000028e0| 69 6e 64 7b 30 2e 35 69 | 6e 7d 0d 0a 69 6e 74 20 |ind{0.5i|n}..int |
|000028f0| 74 73 74 74 67 6c 77 69 | 64 67 65 74 20 28 70 74 |tsttglwi|dget (pt|
|00002900| 72 29 0d 0a 5c 6e 77 6c | 0d 0a 57 49 44 47 45 54 |r)..\nwl|..WIDGET|
|00002910| 20 70 74 72 3b 0d 0a 5c | 69 6e 64 7b 30 2e 30 65 | ptr;..\|ind{0.0e|
|00002920| 6d 7d 0d 0a 5c 70 61 72 | 5c 6e 6f 69 6e 64 65 6e |m}..\par|\noinden|
|00002930| 74 0d 0a 52 65 74 75 72 | 6e 73 20 74 68 65 20 69 |t..Retur|ns the i|
|00002940| 6e 64 65 78 20 76 61 6c | 75 65 20 6f 66 20 74 68 |ndex val|ue of th|
|00002950| 65 20 63 75 72 72 65 6e | 74 20 73 74 61 74 65 20 |e curren|t state |
|00002960| 6f 66 20 74 68 65 20 67 | 69 76 65 6e 20 74 6f 67 |of the g|iven tog|
|00002970| 67 6c 65 20 77 69 64 67 | 65 74 20 28 30 20 24 3c |gle widg|et (0 $<|
|00002980| 24 20 69 6e 64 65 78 20 | 24 3c 24 20 6e 75 6d 62 |$ index |$<$ numb|
|00002990| 65 72 20 74 6f 67 67 6c | 65 20 76 61 6c 75 65 73 |er toggl|e values|
|000029a0| 20 2d 20 31 29 2e 20 52 | 65 74 75 72 6e 73 20 46 | - 1). R|eturns F|
|000029b0| 41 4c 53 45 20 69 66 20 | 74 68 65 20 67 69 76 65 |ALSE if |the give|
|000029c0| 6e 20 77 69 64 67 65 74 | 20 64 6f 65 73 20 6e 6f |n widget| does no|
|000029d0| 74 20 65 78 69 73 74 2e | 0d 0a 0d 0a 5c 70 61 72 |t exist.|....\par|
|000029e0| 5c 6e 6f 69 6e 64 65 6e | 74 0d 0a 5c 6e 77 6c 0d |\noinden|t..\nwl.|
|000029f0| 0a 5c 69 6e 64 7b 30 2e | 35 69 6e 7d 0d 0a 69 6e |.\ind{0.|5in}..in|
|00002a00| 74 20 61 63 74 69 76 61 | 74 65 20 28 70 74 72 29 |t activa|te (ptr)|
|00002a10| 0d 0a 5c 6e 77 6c 0d 0a | 57 49 44 47 45 54 20 70 |..\nwl..|WIDGET p|
|00002a20| 74 72 3b 0d 0a 5c 69 6e | 64 7b 30 2e 30 65 6d 7d |tr;..\in|d{0.0em}|
|00002a30| 0d 0a 5c 70 61 72 5c 6e | 6f 69 6e 64 65 6e 74 0d |..\par\n|oindent.|
|00002a40| 0a 52 65 61 63 74 69 76 | 61 74 65 73 20 61 20 77 |.Reactiv|ates a w|
|00002a50| 69 64 67 65 74 20 77 68 | 69 63 68 20 77 61 73 20 |idget wh|ich was |
|00002a60| 70 72 65 76 69 6f 75 73 | 6c 79 20 64 65 61 63 74 |previous|ly deact|
|00002a70| 69 76 61 74 65 64 2e 20 | 52 65 74 75 72 6e 73 20 |ivated. |Returns |
|00002a80| 54 52 55 45 20 69 66 20 | 73 75 63 63 65 73 73 66 |TRUE if |successf|
|00002a90| 75 6c 20 6f 74 68 65 72 | 77 69 73 65 20 46 41 4c |ul other|wise FAL|
|00002aa0| 53 45 2e 0d 0a 0d 0a 5c | 70 61 72 5c 6e 6f 69 6e |SE.....\|par\noin|
|00002ab0| 64 65 6e 74 0d 0a 5c 6e | 77 6c 0d 0a 5c 69 6e 64 |dent..\n|wl..\ind|
|00002ac0| 7b 30 2e 35 69 6e 7d 0d | 0a 69 6e 74 20 64 65 61 |{0.5in}.|.int dea|
|00002ad0| 63 74 69 76 61 74 65 20 | 28 70 74 72 2c 20 62 6c |ctivate |(ptr, bl|
|00002ae0| 61 6e 6b 29 0d 0a 5c 6e | 77 6c 0d 0a 57 49 44 47 |ank)..\n|wl..WIDG|
|00002af0| 45 54 20 70 74 72 3b 0d | 0a 5c 6e 77 6c 0d 0a 69 |ET ptr;.|.\nwl..i|
|00002b00| 6e 74 20 20 20 20 62 6c | 61 6e 6b 3b 0d 0a 5c 69 |nt bl|ank;..\i|
|00002b10| 6e 64 7b 30 2e 30 65 6d | 7d 0d 0a 5c 70 61 72 5c |nd{0.0em|}..\par\|
|00002b20| 6e 6f 69 6e 64 65 6e 74 | 0d 0a 44 65 61 63 74 69 |noindent|..Deacti|
|00002b30| 76 61 74 65 73 20 74 68 | 65 20 67 69 76 65 6e 20 |vates th|e given |
|00002b40| 61 63 74 69 76 65 20 77 | 69 64 67 65 74 2e 20 54 |active w|idget. T|
|00002b50| 68 65 20 77 69 64 67 65 | 74 20 72 65 6d 61 69 6e |he widge|t remain|
|00002b60| 73 20 6f 6e 20 73 63 72 | 65 65 6e 20 62 75 74 20 |s on scr|een but |
|00002b70| 69 74 20 63 61 6e 6e 6f | 74 20 62 65 20 61 63 74 |it canno|t be act|
|00002b80| 69 76 61 74 65 64 2e 20 | 62 6c 61 6e 6b 20 63 61 |ivated. |blank ca|
|00002b90| 6e 20 62 65 20 42 4c 41 | 4e 4b 20 6f 72 20 4e 4f |n be BLA|NK or NO|
|00002ba0| 42 4c 41 4e 4b 20 77 68 | 69 63 68 20 69 6e 64 69 |BLANK wh|ich indi|
|00002bb0| 63 61 74 65 73 20 77 68 | 65 74 68 65 72 20 74 68 |cates wh|ether th|
|00002bc0| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 74 68 |e conten|ts of th|
|00002bd0| 65 20 77 69 64 67 65 74 | 20 73 68 6f 75 6c 64 20 |e widget| should |
|00002be0| 62 65 20 62 6c 61 6e 6b | 65 64 20 6f 75 74 20 6f |be blank|ed out o|
|00002bf0| 72 20 6e 6f 74 20 77 68 | 69 6c 65 20 69 74 20 69 |r not wh|ile it i|
|00002c00| 73 20 69 6e 61 63 74 69 | 76 65 2e 20 54 68 65 20 |s inacti|ve. The |
|00002c10| 66 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |function| returns|
|00002c20| 20 54 52 55 45 20 69 66 | 20 73 75 63 63 65 73 73 | TRUE if| success|
|00002c30| 66 75 6c 20 6f 72 20 46 | 41 4c 53 45 20 69 66 20 |ful or F|ALSE if |
|00002c40| 74 68 65 20 67 69 76 65 | 6e 20 77 69 64 67 65 74 |the give|n widget|
|00002c50| 20 64 6f 65 73 20 6e 6f | 74 20 65 78 69 73 74 2e | does no|t exist.|
|00002c60| 0d 0a 0d 0a 5c 70 61 72 | 5c 6e 6f 69 6e 64 65 6e |....\par|\noinden|
|00002c70| 74 0d 0a 5c 6e 77 6c 0d | 0a 5c 69 6e 64 7b 30 2e |t..\nwl.|.\ind{0.|
|00002c80| 35 69 6e 7d 0d 0a 69 6e | 74 20 68 69 67 68 6c 69 |5in}..in|t highli|
|00002c90| 67 68 74 20 28 70 74 72 | 29 0d 0a 5c 6e 77 6c 0d |ght (ptr|)..\nwl.|
|00002ca0| 0a 57 49 44 47 45 54 20 | 70 74 72 3b 0d 0a 5c 69 |.WIDGET |ptr;..\i|
|00002cb0| 6e 64 7b 30 2e 30 65 6d | 7d 0d 0a 5c 70 61 72 5c |nd{0.0em|}..\par\|
|00002cc0| 6e 6f 69 6e 64 65 6e 74 | 0d 0a 48 69 67 68 6c 69 |noindent|..Highli|
|00002cd0| 67 68 74 73 20 74 68 65 | 20 67 69 76 65 6e 20 77 |ghts the| given w|
|00002ce0| 69 64 67 65 74 2e 20 52 | 65 74 75 72 6e 73 20 54 |idget. R|eturns T|
|00002cf0| 52 55 45 20 69 66 20 73 | 75 63 63 65 73 73 66 75 |RUE if s|uccessfu|
|00002d00| 6c 20 65 6c 73 65 20 46 | 41 4c 53 45 20 69 66 20 |l else F|ALSE if |
|00002d10| 74 68 65 20 77 69 64 67 | 65 74 20 64 6f 65 73 20 |the widg|et does |
|00002d20| 6e 6f 74 20 65 78 69 73 | 74 2e 0d 0a 0d 0a 5c 70 |not exis|t.....\p|
|00002d30| 61 72 5c 6e 6f 69 6e 64 | 65 6e 74 0d 0a 5c 6e 77 |ar\noind|ent..\nw|
|00002d40| 6c 0d 0a 5c 69 6e 64 7b | 30 2e 35 69 6e 7d 0d 0a |l..\ind{|0.5in}..|
|00002d50| 69 6e 74 20 64 65 68 69 | 67 68 6c 69 67 68 74 20 |int dehi|ghlight |
|00002d60| 28 70 74 72 29 0d 0a 5c | 6e 77 6c 0d 0a 57 49 44 |(ptr)..\|nwl..WID|
|00002d70| 47 45 54 20 70 74 72 3b | 0d 0a 5c 69 6e 64 7b 30 |GET ptr;|..\ind{0|
|00002d80| 2e 30 65 6d 7d 0d 0a 5c | 70 61 72 5c 6e 6f 69 6e |.0em}..\|par\noin|
|00002d90| 64 65 6e 74 0d 0a 54 75 | 72 6e 73 20 6f 66 66 20 |dent..Tu|rns off |
|00002da0| 74 68 65 20 68 69 67 68 | 6c 69 67 68 74 69 6e 67 |the high|lighting|
|00002db0| 20 6f 66 20 74 68 65 20 | 67 69 76 65 6e 20 77 69 | of the |given wi|
|00002dc0| 64 67 65 74 2e 20 52 65 | 74 75 72 6e 73 20 54 52 |dget. Re|turns TR|
|00002dd0| 55 45 20 69 66 20 73 75 | 63 63 65 73 73 66 75 6c |UE if su|ccessful|
|00002de0| 20 65 6c 73 65 20 46 41 | 4c 53 45 20 69 66 20 74 | else FA|LSE if t|
|00002df0| 68 65 20 77 69 64 67 65 | 74 20 64 6f 65 73 20 6e |he widge|t does n|
|00002e00| 6f 74 20 65 78 69 73 74 | 2e 0d 0a 0d 0a 5c 70 61 |ot exist|.....\pa|
|00002e10| 72 5c 6e 6f 69 6e 64 65 | 6e 74 0d 0a 5c 6e 77 6c |r\noinde|nt..\nwl|
|00002e20| 0d 0a 5c 69 6e 64 7b 30 | 2e 35 69 6e 7d 0d 0a 69 |..\ind{0|.5in}..i|
|00002e30| 6e 74 20 63 68 61 6e 67 | 65 6c 62 6c 77 69 64 67 |nt chang|elblwidg|
|00002e40| 65 74 20 28 70 74 72 2c | 20 6d 65 73 73 61 67 65 |et (ptr,| message|
|00002e50| 2c 20 70 6f 73 69 74 69 | 6f 6e 29 0d 0a 5c 6e 77 |, positi|on)..\nw|
|00002e60| 6c 0d 0a 57 49 44 47 45 | 54 20 70 74 72 3b 0d 0a |l..WIDGE|T ptr;..|
|00002e70| 5c 6e 77 6c 0d 0a 63 68 | 61 72 20 20 20 6d 65 73 |\nwl..ch|ar mes|
|00002e80| 73 61 67 65 5b 5d 3b 0d | 0a 5c 6e 77 6c 0d 0a 69 |sage[];.|.\nwl..i|
|00002e90| 6e 74 20 20 20 20 70 6f | 73 69 74 69 6f 6e 3b 0d |nt po|sition;.|
|00002ea0| 0a 5c 69 6e 64 7b 30 2e | 30 65 6d 7d 0d 0a 5c 70 |.\ind{0.|0em}..\p|
|00002eb0| 61 72 5c 6e 6f 69 6e 64 | 65 6e 74 0d 0a 43 68 61 |ar\noind|ent..Cha|
|00002ec0| 6e 67 65 73 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |nges the| content|
|00002ed0| 73 20 6f 66 20 74 68 65 | 20 67 69 76 65 6e 20 6c |s of the| given l|
|00002ee0| 61 62 65 6c 20 77 69 64 | 67 65 74 20 74 6f 20 74 |abel wid|get to t|
|00002ef0| 68 61 74 20 67 69 76 65 | 6e 20 69 6e 20 6d 65 73 |hat give|n in mes|
|00002f00| 73 61 67 65 2e 20 70 6f | 73 69 74 69 6f 6e 20 73 |sage. po|sition s|
|00002f10| 70 65 63 69 66 69 65 73 | 20 68 6f 77 20 74 68 65 |pecifies| how the|
|00002f20| 20 6d 65 73 73 61 67 65 | 20 69 73 20 74 6f 20 61 | message| is to a|
|00002f30| 70 70 65 61 72 20 28 73 | 65 65 20 6d 6b 6c 62 6c |ppear (s|ee mklbl|
|00002f40| 77 69 64 67 65 74 29 2e | 20 54 68 65 20 66 75 6e |widget).| The fun|
|00002f50| 63 74 69 6f 6e 20 72 65 | 74 75 72 6e 73 20 54 52 |ction re|turns TR|
|00002f60| 55 45 20 69 66 20 73 75 | 63 63 65 73 73 66 75 6c |UE if su|ccessful|
|00002f70| 20 65 6c 73 65 20 46 41 | 4c 53 45 2e 0d 0a 7d 0d | else FA|LSE...}.|
|00002f80| 0a 7b 5c 6e 6f 62 72 65 | 61 6b 0d 0a 5c 70 61 72 |.{\nobre|ak..\par|
|00002f90| 5c 6e 6f 69 6e 64 65 6e | 74 0d 0a 5c 6e 77 6c 0d |\noinden|t..\nwl.|
|00002fa0| 0a 5c 69 6e 64 7b 30 2e | 35 69 6e 7d 0d 0a 57 49 |.\ind{0.|5in}..WI|
|00002fb0| 44 47 45 54 54 59 50 45 | 20 77 69 64 67 65 74 74 |DGETTYPE| widgett|
|00002fc0| 79 70 65 20 28 70 74 72 | 29 0d 0a 5c 6e 77 6c 0d |ype (ptr|)..\nwl.|
|00002fd0| 0a 57 49 44 47 45 54 20 | 70 74 72 3b 0d 0a 5c 69 |.WIDGET |ptr;..\i|
|00002fe0| 6e 64 7b 30 2e 30 65 6d | 7d 0d 0a 5c 70 61 72 5c |nd{0.0em|}..\par\|
|00002ff0| 6e 6f 69 6e 64 65 6e 74 | 0d 0a 52 65 74 75 72 6e |noindent|..Return|
|00003000| 73 20 74 68 65 20 74 79 | 70 65 20 6f 66 20 77 69 |s the ty|pe of wi|
|00003010| 64 67 65 74 20 70 6f 69 | 6e 74 65 64 20 74 6f 6f |dget poi|nted too|
|00003020| 20 62 79 20 70 74 72 2e | 20 54 68 65 20 72 65 74 | by ptr.| The ret|
|00003030| 75 72 6e 65 64 20 74 79 | 70 65 20 76 61 6c 75 65 |urned ty|pe value|
|00003040| 20 69 73 20 6f 6e 65 20 | 6f 66 20 43 4d 44 2c 20 | is one |of CMD, |
|00003050| 4c 42 4c 2c 20 54 47 4c | 2c 20 49 4e 50 20 6f 72 |LBL, TGL|, INP or|
|00003060| 20 46 41 4c 53 45 20 69 | 66 20 74 68 65 20 77 69 | FALSE i|f the wi|
|00003070| 64 67 65 74 20 64 6f 65 | 73 20 6e 6f 74 20 65 78 |dget doe|s not ex|
|00003080| 69 73 74 2e 0d 0a 0d 0a | 5c 73 68 65 61 64 7b 46 |ist.....|\shead{F|
|00003090| 69 6e 69 73 68 69 6e 67 | 20 55 70 7d 0d 0a 0d 0a |inishing| Up}....|
|000030a0| 5c 70 61 72 5c 6e 6f 69 | 6e 64 65 6e 74 0d 0a 5c |\par\noi|ndent..\|
|000030b0| 6e 77 6c 0d 0a 5c 69 6e | 64 7b 30 2e 35 69 6e 7d |nwl..\in|d{0.5in}|
|000030c0| 0d 0a 65 6e 64 77 69 64 | 67 65 74 73 20 28 29 0d |..endwid|gets ().|
|000030d0| 0a 5c 69 6e 64 7b 30 2e | 30 65 6d 7d 0d 0a 5c 70 |.\ind{0.|0em}..\p|
|000030e0| 61 72 5c 6e 6f 69 6e 64 | 65 6e 74 0d 0a 43 6c 6f |ar\noind|ent..Clo|
|000030f0| 73 65 73 20 64 6f 77 6e | 20 74 68 65 20 77 69 6e |ses down| the win|
|00003100| 64 6f 77 69 6e 67 20 73 | 79 73 74 65 6d 20 61 6e |dowing s|ystem an|
|00003110| 64 20 73 68 6f 75 6c 64 | 20 62 65 20 75 73 65 64 |d should| be used|
|00003120| 20 61 74 20 74 68 65 20 | 65 6e 64 2e 20 54 68 69 | at the |end. Thi|
|00003130| 73 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 61 6c |s functi|on is al|
|00003140| 73 6f 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |so autom|atically|
|00003150| 20 63 61 6c 6c 65 64 20 | 6f 6e 20 61 6e 20 69 6e | called |on an in|
|00003160| 74 65 72 72 75 70 74 20 | 28 65 2e 67 20 5c 5e 7b |terrupt |(e.g \^{|
|00003170| 7d 43 29 2e 0d 0a 7d 0d | 0a 25 0d 0a 25 20 65 6e |}C)...}.|.%..% en|
|00003180| 64 20 6f 66 20 69 6e 70 | 75 74 20 66 69 6c 65 3a |d of inp|ut file:|
|00003190| 20 77 69 64 67 65 74 2e | 6d 73 0d 0a 25 2d 2d 2d | widget.|ms..%---|
|000031a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000031b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000031c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|000031d0| 0a 5c 65 6e 64 7b 64 6f | 63 75 6d 65 6e 74 7d 0d |.\end{do|cument}.|
|000031e0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+